Trait Rng

Source
pub trait Rng {
    type Error: Error;

    // Required method
    fn fill(&mut self, dest: &mut [u8]) -> Result<(), Self::Error>;
}
Expand description

Represents a source of random bytes.

Required Associated Types§

Required Methods§

Source

fn fill(&mut self, dest: &mut [u8]) -> Result<(), Self::Error>

Implementor must fill all the bytes in the dest.

Implementors§