Struct tiamat::OsRng[][src]

pub struct OsRng(_);

RandomGen that sources its randomness from the operating system.

Methods

impl OsRng
[src]

Creates a new OS-dependent random number generator.

Trait Implementations

impl RandomGen for OsRng
[src]

Returns a (pseudo-)random, uniformly distributed u32. Read more

Returns a (pseudo-)random, uniformly distributed u64. Read more

Fills the buffer with (pseudo-)random bytes. Read more

Generates a random value. Read more

Generates a random value according to some specification. Read more

Chooses a random element from the slice, where each element has the same probability of being chosen. Read more

Important traits for IterGen<'a, G, R>

Returns an iterator over randomly generated values. Read more

Important traits for IterBuild<'a, G, B, R>

Returns an iterator over randomly built values. Read more

Important traits for IterChooseFrom<'a, G, T>

Returns an iterator over values randomly chosen from a slice. Read more

Auto Trait Implementations

impl Send for OsRng

impl Sync for OsRng