Struct synfx_dsp::SplitMix64
source · [−]pub struct SplitMix64(pub u64);
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.
Tuple Fields
0: u64
Implementations
sourceimpl SplitMix64
impl SplitMix64
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 moresourceimpl Debug for SplitMix64
impl Debug for SplitMix64
impl Copy 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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