RngCore

Trait RngCore 

Source
pub trait RngCore {
    // Required method
    fn next_u64(&mut self) -> u64;

    // Provided methods
    fn next_u32(&mut self) -> u32 { ... }
    fn fill_bytes(&mut self, dst: &mut [u8]) { ... }
}

Required Methods§

Source

fn next_u64(&mut self) -> u64

Provided Methods§

Source

fn next_u32(&mut self) -> u32

Source

fn fill_bytes(&mut self, dst: &mut [u8])

Implementors§

Source§

impl RngCore for OsRandomRng

Available on crate feature os-random only.
Source§

impl RngCore for Xoshiro256

Source§

impl<T: DerefMut> RngCore for T
where T::Target: RngCore,