Struct rand_xoshiro::SplitMix64
source · pub struct SplitMix64 { /* private fields */ }
Expand description
A splitmix64 random number generator.
The splitmix algorithm is not suitable for cryptographic purposes, but is very fast and has a 64 bit state.
The algorithm used here is translated from the splitmix64.c
reference source code by
Sebastiano Vigna. For next_u32
, a more efficient mixing function taken
from dsiutils
is used.
Trait Implementations§
source§impl Clone for SplitMix64
impl Clone for SplitMix64
source§fn clone(&self) -> SplitMix64
fn clone(&self) -> SplitMix64
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SplitMix64
impl Debug for SplitMix64
source§impl RngCore for SplitMix64
impl RngCore for SplitMix64
source§fn fill_bytes(&mut self, dest: &mut [u8])
fn fill_bytes(&mut self, dest: &mut [u8])
Fill
dest
with random data. Read moresource§impl SeedableRng for SplitMix64
impl SeedableRng for SplitMix64
source§fn seed_from_u64(seed: u64) -> SplitMix64
fn seed_from_u64(seed: u64) -> SplitMix64
Seed a SplitMix64
from a u64
.