Function kernel::random::getrandom_nonblock[][src]

pub fn getrandom_nonblock(dest: &mut [u8]) -> Result
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.