Struct std::rand::IsaacRng

pub struct IsaacRng {
    priv cnt: u32,
    priv rsl: [u32, ..RAND_SIZE],
    priv mem: [u32, ..RAND_SIZE],
    priv a: u32,
    priv b: u32,
    priv c: u32,
}

A random number generator that uses the ISAAC algorithm.

The ISAAC algorithm is suitable for cryptographic purposes.

Methods

impl IsaacRng

fn new() -> IsaacRng

Create an ISAAC random number generator with a random seed.

fn new_seeded(seed: &[u8]) -> IsaacRng

Create an ISAAC random number generator with a seed. This can be any length, although the maximum number of bytes used is 1024 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 the same seed.

fn new_unseeded() -> IsaacRng

Create an ISAAC random number generator using the default fixed seed.

Trait Implementations

impl Rng for IsaacRng

fn next(&mut self) -> u32

Return the next random integer