RngCore

Trait RngCore 

Source
pub trait RngCore<W> {
    // Required methods
    fn gen(&mut self) -> Result<W, ErrorKind>;
    fn gen_range(&mut self, low: W, high: W) -> Result<W, ErrorKind>;
    fn fill(&mut self, dest: &mut [W]) -> Result<(), ErrorKind>;
}

Required Methods§

Source

fn gen(&mut self) -> Result<W, ErrorKind>

Source

fn gen_range(&mut self, low: W, high: W) -> Result<W, ErrorKind>

Source

fn fill(&mut self, dest: &mut [W]) -> Result<(), ErrorKind>

Implementors§