syscall.sh / alpha / getrandom

getrandom

obtain a series of random bytes

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

Registers

registervalue
v0511, the syscall number
a0char *buf
a1size_t count
a2unsigned int flags
v0the return value

Then run callsys to enter the kernel.

Same syscall on other architectures

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