Skip to main content

os_random

Function os_random 

Source
pub fn os_random(buf: &mut [u8]) -> bool
Expand description

Fills buf from the operating system’s cryptographically secure random source. Returns false if the source failed (callers must treat that as fatal, never fall back to weaker randomness).