syscall.sh / sh / getrandom

getrandom

obtain a series of random bytes

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

Registers

registervalue
r3373, the syscall number
r4char *buf
r5size_t count
r6unsigned int flags
r0the return value

Then run trapa #31 to enter the kernel.

Same syscall on other architectures

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