Skip to main content

random_bytes

Function random_bytes 

Source
pub fn random_bytes<const N: usize>() -> Result<[u8; N], Error>
Expand description

Returns N random bytes from the operating system’s CSPRNG.