[][src]Struct sgx_rand::isaac::IsaacRng

pub struct IsaacRng { /* fields omitted */ }

A random number generator that uses the ISAAC algorithm[1].

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

Implementations

impl IsaacRng[src]

pub fn new_unseeded() -> IsaacRng[src]

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

Trait Implementations

impl Clone for IsaacRng[src]

impl Copy for IsaacRng[src]

impl Debug for IsaacRng[src]

impl Rand for IsaacRng[src]

impl Rng for IsaacRng[src]

impl<'a> SeedableRng<&'a [u32]> for IsaacRng[src]

fn from_seed(seed: &'a [u32]) -> IsaacRng[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 IsaacRng

impl Send for IsaacRng

impl Sync for IsaacRng

impl Unpin for IsaacRng

impl UnwindSafe for IsaacRng

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.