syscall.sh / s390x / getrandom

getrandom

obtain a series of random bytes

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

Registers

registervalue
r1349, the syscall number
r2char *buf
r3size_t count
r4unsigned int flags
r2the 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/s390x/getrandom