Struct rand::isaac::Isaac64Rng
[−]
[src]
pub struct Isaac64Rng {
cnt: usize,
rsl: [w64; RAND_SIZE_64],
mem: [w64; RAND_SIZE_64],
a: w64,
b: w64,
c: w64,
}rand): use rand from crates.io
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
Fields
cnt | Unstable ( rand): use |
rsl | Unstable ( rand): use |
mem | Unstable ( rand): use |
a | Unstable ( rand): use |
b | Unstable ( rand): use |
c | Unstable ( rand): use |
Methods
impl Isaac64Rng
fn new_unseeded() -> Isaac64Rng
rand): use rand from crates.io
Create a 64-bit ISAAC random number generator using the default fixed seed.
fn init(&mut self, use_rsl: bool)
rand): use rand from crates.io
Initialises self. If use_rsl is true, then use the current value
of rsl as a seed, otherwise construct one algorithmically (not
randomly).
fn isaac64(&mut self)
rand): use rand from crates.io
Refills the output buffer (self.rsl)