pub fn new() -> Self {
        let optional_seed = &mut *unwrap!(SEED.lock());
        let seed = if let Some(current_seed) = *optional_seed {
            current_seed
        } else {
            let new_seed = [
                rand::random(),
                rand::random(),
                rand::random(),
                rand::random(),
            ];
            *optional_seed = Some(new_seed);
            new_seed
        };
        SeededRng(XorShiftRng::from_seed(seed))
    }
/// Construct a new `SeededRng` using a seed generated from cryptographically secure random
/// data.
///
/// The seed is only set once for the whole process, so every call to this will yield internal
/// RNGs which are all seeded identically.
Construct a new `SeededRng` using a seed generated from cryptographically secure random
data.

The seed is only set once for the whole process, so every call to this will yield internal
RNGs which are all seeded identically.
Construct a new ` SeededRng ` using a seed generated from cryptographically secure random data . The seed is only set once for the whole process so every call to this will yield internal RNGs which are all seeded identically .
pub fn new() -> Self {
        let optional_seed = &mut *unwrap!(SEED.lock());
        let seed = if let Some(current_seed) = *optional_seed {
            current_seed
        } else {
            let new_seed = [
                rand::random(),
                rand::random(),
                rand::random(),
                rand::random(),
            ];
            *optional_seed = Some(new_seed);
            new_seed
        };
        SeededRng(XorShiftRng::from_seed(seed))
    }
pub fn new ( ) -> Self { let optional_seed = & mut * unwrap ! ( SEED lock ( ) ) ; let seed = if let Some ( current_seed ) = * optional_seed { current_seed } else { let new_seed = [ rand :: random ( ) , rand :: random ( ) , rand :: random ( ) , rand :: random ( ) , ] ; * optional_seed = Some ( new_seed ) ; new_seed } ; SeededRng ( XorShiftRng :: from_seed ( seed ) ) }
Construct a new `SeededRng` using a seed generated from cryptographically secure random
data.
Construct a new ` SeededRng ` using a seed generated from cryptographically secure random data .