[][src]Struct rand::Isaac64Rng

pub struct Isaac64Rng { /* 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 Isaac64Rng[src][]

pub fn new_unseeded() -> Isaac64Rng[src][]

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

Trait Implementations

impl Clone for Isaac64Rng[src][+]

impl Copy for Isaac64Rng[src]

impl Debug for Isaac64Rng[src][+]

impl Rand for Isaac64Rng[src][+]

impl Rng for Isaac64Rng[src][+]

impl<'a> SeedableRng<&'a [u64]> for Isaac64Rng[src][+]

fn from_seed(seed: &'a [u64]) -> Isaac64Rng[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.

Auto Trait Implementations

impl RefUnwindSafe for Isaac64Rng

impl Send for Isaac64Rng

impl Sync for Isaac64Rng

impl Unpin for Isaac64Rng

impl UnwindSafe for Isaac64Rng

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src][+]

impl<T> Borrow<T> for T where
    T: ?Sized
[src][+]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src][+]

impl<T> From<T> for T[src][+]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src][+]

impl<T> ToOwned for T where
    T: Clone
[src][+]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src][+]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src][+]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.