syscall.sh / arm64 / getrandom

getrandom

obtain a series of random bytes

sys_getrandom(char *buf, size_t count, unsigned int flags)
number278 (0x116)
abicommon
entry pointsys_getrandom
sinceLinux 3.17
man pagegetrandom(2)
sourceelixir.bootlin.com

Registers

registervalue
x8278, the syscall number
x0char *buf
x1size_t count
x2unsigned int flags
x0the return value

Then run svc #0 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/arm64/getrandom