syscall.sh / x32 / getrandom

getrandom

obtain a series of random bytes

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

Registers

registervalue
rax1073742142, 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/x32/getrandom