pub fn getrandom(dest: &mut [u8]) -> Result
Expand description

Fills a byte slice with random bytes generated from the kernel’s CSPRNG.

Ensures that the CSPRNG has been seeded before generating any random bytes, and will block until it is ready.