Trait SeedableRng

Source
pub trait SeedableRng: SecureRng {
    // Required method
    fn seed(&mut self, seed: &[u8]) -> Result<(), Box<dyn Error + 'static>>;
}
Expand description

A seedable random number generator

Required Methods§

Source

fn seed(&mut self, seed: &[u8]) -> Result<(), Box<dyn Error + 'static>>

Seeds seed into the SeedableRng

Implementors§