Skip to main content

Module random

Module random 

Source
Expand description

Random number generation syscalls: getrandom

Fills request buffers from the kernel entropy pool, which collects entropy from interrupt noise (keyboard, timer, storage IRQs) and RDRAND. Falls back to RDRAND + jitter if the pool is not yet seeded during early boot.

Constantsยง

GRND_FLAGS_MASK ๐Ÿ”’
Valid flags mask.
GRND_NONBLOCK ๐Ÿ”’
GRND_NONBLOCK: return EAGAIN if entropy pool is not yet initialised.
GRND_RANDOM ๐Ÿ”’
GRND_RANDOM: use /dev/random quality (same pool, no distinction in this impl).

Functionsยง

sys_getrandom
SYS_GETRANDOM (601): Fill a buffer with random bytes.