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]

[src]

Create a 64-bit ISAAC random number generator using the default fixed seed.

Trait Implementations

impl Clone for Rng
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Rng
[src]

impl Debug for Rng
[src]

[src]

Formats the value using the given formatter.

impl RandomGen for Rng
[src]

[src]

[src]

[src]

[src]

[src]

[src]

impl<'a> Seedable<&'a [u64]> for Rng
[src]

[src]

[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.

impl Random for Rng
[src]

[src]