fn create(self, src: &mut rand_hc::Hc128Rng) -> Box<dyn RngCore + Send> {
        match self {
            Self::ChaCha12 => Box::new(rand_chacha::ChaCha12Rng::from_seed(src.gen())),
            Self::ChaCha20 => Box::new(rand_chacha::ChaCha20Rng::from_seed(src.gen())),
            Self::Hc128 => Box::new(rand_hc::Hc128Rng::from_seed(src.gen())),
            Self::Isaac => Box::new(rand_isaac::IsaacRng::from_seed(src.gen())),
            Self::Isaac64 => Box::new(rand_isaac::Isaac64Rng::from_seed(src.gen())),
            Self::XorShift => Box::new(rand_xorshift::XorShiftRng::from_seed(src.gen())),
            Self::Pcg32 => Box::new(rand_pcg::Pcg32::from_seed(src.gen())),
            Self::Step => Box::new(StepRng::new(src.next_u64(), src.next_u64() | 1)),
        }
    }
/// Creates an RNG engine given the name. The RNG engine instance will be seeded from `src`.
Creates an RNG engine given the name. The RNG engine instance will be seeded from `src`.
Creates an RNG engine given the name . The RNG engine instance will be seeded from ` src ` .
fn create(self, src: &mut rand_hc::Hc128Rng) -> Box<dyn RngCore + Send> {
        match self {
            Self::ChaCha12 => Box::new(rand_chacha::ChaCha12Rng::from_seed(src.gen())),
            Self::ChaCha20 => Box::new(rand_chacha::ChaCha20Rng::from_seed(src.gen())),
            Self::Hc128 => Box::new(rand_hc::Hc128Rng::from_seed(src.gen())),
            Self::Isaac => Box::new(rand_isaac::IsaacRng::from_seed(src.gen())),
            Self::Isaac64 => Box::new(rand_isaac::Isaac64Rng::from_seed(src.gen())),
            Self::XorShift => Box::new(rand_xorshift::XorShiftRng::from_seed(src.gen())),
            Self::Pcg32 => Box::new(rand_pcg::Pcg32::from_seed(src.gen())),
            Self::Step => Box::new(StepRng::new(src.next_u64(), src.next_u64() | 1)),
        }
    }
fn create ( self , src : & mut rand_hc :: Hc128Rng ) -> Box < dyn RngCore + Send > { match self { Self :: ChaCha12 => Box :: new ( rand_chacha :: ChaCha12Rng :: from_seed ( src . gen ( ) ) ) , Self :: ChaCha20 => Box :: new ( rand_chacha :: ChaCha20Rng :: from_seed ( src . gen ( ) ) ) , Self :: Hc128 => Box :: new ( rand_hc :: Hc128Rng :: from_seed ( src . gen ( ) ) ) , Self :: Isaac => Box :: new ( rand_isaac :: IsaacRng :: from_seed ( src . gen ( ) ) ) , Self :: Isaac64 => Box :: new ( rand_isaac :: Isaac64Rng :: from_seed ( src . gen ( ) ) ) , Self :: XorShift => Box :: new ( rand_xorshift :: XorShiftRng :: from_seed ( src . gen ( ) ) ) , Self :: Pcg32 => Box :: new ( rand_pcg :: Pcg32 :: from_seed ( src . gen ( ) ) ) , Self :: Step => Box :: new ( StepRng :: new ( src . next_u64 ( ) , src . next_u64 ( ) | 1 ) ) , } }
Creates an RNG engine given the name.
Creates an RNG engine given the name .
self
src
&mut rand_hc::Hc128Rng
self
src
&mut rand_hc::Hc128Rng