Struct xoroshiro::rng::SplitMix64[][src]

pub struct SplitMix64 { /* fields omitted */ }

A splitmix random number generator.

The splitmix algorithm is not suitable for cryptographic purposes, but is very fast and has a 64 bit state. Usually XoroShiro128 should be prefered. If you do not know for sure that it fits your requirements, use a more secure one such as IsaacRng or OsRng.

The algorithm used here is translated from the splitmix64.c reference source code by Sebastiano Vigna.

Methods

impl SplitMix64
[src]

Creates a new SplitMix64 instance which is not seeded.

The initial values of this RNG are constants, so all generators created by this function will yield the same stream of random numbers. It is highly recommended that this is created through SeedableRng instead of this function.

Trait Implementations

impl Debug for SplitMix64
[src]

Formats the value using the given formatter. Read more

impl Clone for SplitMix64
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl RngCore for SplitMix64
[src]

Return the next random u32. Read more

Return the next random u64. Read more

Fill dest with random data. Read more

Fill dest entirely with random data. Read more

impl SeedableRng for SplitMix64
[src]

Seed type, which is restricted to types mutably-dereferencable as u8 arrays (we recommend [u8; N] for some N). Read more

Create a new SplitMix64.

Create a new PRNG seeded from another Rng. Read more

Auto Trait Implementations

impl Send for SplitMix64

impl Sync for SplitMix64