pub struct OsRng(_);
Expand description
A random number generator that retrieves randomness straight from the operating system.
Implementations§
Trait Implementations§
source§impl RngCore for OsRng
impl RngCore for OsRng
source§fn fill_bytes(&mut self, dest: &mut [u8])
fn fill_bytes(&mut self, dest: &mut [u8])
Fill
dest
with random data. Read more