generate_random_bytes

Function generate_random_bytes 

Source
pub fn generate_random_bytes<const N: usize>() -> [u8; N]
Expand description

Generate a buffer with random bytes using randomness from the operating system.

The implementation is provided by the getrandom crate. Refer to getrandom documentation for details.