syscall.sh / mipso32 / getrandom
getrandom
obtain a series of random bytes
sys_getrandom(char *buf, size_t count, unsigned int flags)
| number | 4353 (0x1101) |
|---|---|
| abi | o32 |
| entry point | sys_getrandom |
| since | Linux 5.0 |
| man page | getrandom(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
v0 | 4353, the syscall number |
a0 | char *buf |
a1 | size_t count |
a2 | unsigned int flags |
v0 | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x64 318
- x86 355
- arm64 278
- arm 384
- riscv64 278
- x32 1073742142
- loongarch64 278
- ppc64 359
- ppc 359
- s390x 349
- mips64 5313
- mipsn32 6317
- alpha 511
- arc 278
- csky 278
- hexagon 278
- m68k 352
- microblaze 385
- nios2 278
- openrisc 278
- parisc 339
- sh 373
- sparc 347
- sparc64 347
- xtensa 338
Get this as JSON: https://api.syscall.sh/v2/syscalls/mipso32/getrandom