syscall.sh / x64 / getrandom

getrandom

obtain a series of random bytes

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

Registers

registervalue
rax318, the syscall number
rdichar *buf
rsisize_t count
rdxunsigned int flags
raxthe return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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