Function kernel::random::getrandom_nonblock
source · [−]Expand description
Fills a byte slice with random bytes generated from the kernel’s CSPRNG.
If the CSPRNG is not yet seeded, returns an Err(EAGAIN)
immediately.