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
sourceimpl Clone for SplitMix64
impl Clone for SplitMix64
sourcefn clone(&self) -> SplitMix64
fn clone(&self) -> SplitMix64
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SplitMix64
impl Debug for SplitMix64
sourceimpl PartialEq<SplitMix64> for SplitMix64
impl PartialEq<SplitMix64> for SplitMix64
sourcefn eq(&self, other: &SplitMix64) -> bool
fn eq(&self, other: &SplitMix64) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SplitMix64) -> bool
fn ne(&self, other: &SplitMix64) -> bool
This method tests for !=
.
sourceimpl RngCore for SplitMix64
impl RngCore for SplitMix64
sourceimpl SeedableRng for SplitMix64
impl SeedableRng for SplitMix64
sourcefn seed_from_u64(seed: u64) -> SplitMix64
fn seed_from_u64(seed: u64) -> SplitMix64
Seed a SplitMix64
from a u64
.
type Seed = [u8; 8]
type Seed = [u8; 8]
Seed type, which is restricted to types mutably-dereferencable as u8
arrays (we recommend [u8; N]
for some N
). Read more
sourcefn from_rng<R>(rng: R) -> Result<Self, Error> where
R: RngCore,
fn from_rng<R>(rng: R) -> Result<Self, Error> where
R: RngCore,
Create a new PRNG seeded from another Rng
. Read more
sourcefn from_entropy() -> Self
fn from_entropy() -> Self
impl Eq for SplitMix64
impl StructuralEq for SplitMix64
impl StructuralPartialEq for SplitMix64
Auto Trait Implementations
impl RefUnwindSafe for SplitMix64
impl Send for SplitMix64
impl Sync for SplitMix64
impl Unpin for SplitMix64
impl UnwindSafe for SplitMix64
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more