pub trait Rng {
// Required method
fn fill_bytes(&mut self, dest: &mut [u8]);
}Expand description
Trait for random number generation.
Callers provide an implementation; in std builds this wraps OS randomness.
pub trait Rng {
// Required method
fn fill_bytes(&mut self, dest: &mut [u8]);
}Trait for random number generation.
Callers provide an implementation; in std builds this wraps OS randomness.