Struct isaac::Rng
[−]
[src]
pub struct Rng { /* fields omitted */ }
A random number generator that uses ISAAC-64[1], the 64-bit variant of the ISAAC algorithm.
The ISAAC algorithm is generally accepted as suitable for
cryptographic purposes, but this implementation has not be
verified as such. Prefer a generator like OsRng
that defers to
the operating system for cases that need high security.
[1]: Bob Jenkins, ISAAC: A fast cryptographic random number generator
Methods
impl Rng
[src]
fn new_unseeded() -> Rng
[src]
Create a 64-bit ISAAC random number generator using the default fixed seed.
Trait Implementations
impl Clone for Rng
[src]
fn clone(&self) -> Rng
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Rng
[src]
impl Debug for Rng
[src]
impl RandomGen for Rng
[src]
fn gen_u32(&mut self) -> u32
[src]
fn gen_u64(&mut self) -> u64
[src]
fn gen_f32(&mut self) -> f32
[src]
fn gen_f64(&mut self) -> f64
[src]
fn fill_bytes(&mut self, bs: &mut [u8])
[src]
fn gen<A>(&mut self) -> A where
A: Random,
[src]
A: Random,
impl<'a> Seedable<&'a [u64]> for Rng
[src]
fn reseed(&mut self, seed: &'a [u64])
[src]
fn from_seed(seed: &'a [u64]) -> Rng
[src]
Create an ISAAC random number generator with a seed. This can be any length, although the maximum number of elements used is 256 and any more will be silently ignored. A generator constructed with a given seed will generate the same sequence of values as all other generators constructed with that seed.