Trait necsim_core::cogs::rng::RngCore

source ·
pub trait RngCore<M: MathsCore>: Backup + Sized + Send + Clone + Debug + Serialize + DeserializeOwned {
    type Seed: AsMut<[u8]> + Default + Sized;

    // Required methods
    fn from_seed(seed: Self::Seed) -> Self;
    fn sample_u64(&mut self) -> u64;
}

Required Associated Types§

Required Methods§

source

fn from_seed(seed: Self::Seed) -> Self

source

fn sample_u64(&mut self) -> u64

Object Safety§

This trait is not object safe.

Implementors§