[][src]Struct nanorand::rand::wyrand::WyRand

pub struct WyRand { /* fields omitted */ }

An instance of the wyrand random number generator.
Seeded from the system entropy generator when available.
This generator is NOT cryptographically secure.

Implementations

impl WyRand[src]

pub fn new() -> Self[src]

Create a new WyRand instance, seeding from the system's default source of entropy.

pub fn new_seed(seed: u64) -> Self[src]

Create a new WyRand instance, using a provided seed.

Trait Implementations

impl Clone for WyRand[src]

impl Default for WyRand[src]

fn default() -> Self[src]

Create a new WyRand instance, seeding from the system's default source of entropy.

impl Display for WyRand[src]

impl RNG for WyRand[src]

type Output = [u8; 8]

The byte output that this RNG emits.

Auto Trait Implementations

impl RefUnwindSafe for WyRand

impl Send for WyRand

impl Sync for WyRand

impl Unpin for WyRand

impl UnwindSafe for WyRand

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.