Struct Xoshiro128PlusPlus
pub struct Xoshiro128PlusPlus { /* private fields */ }
A xoshiro128++ random number generator.
The xoshiro128++ algorithm is not suitable for cryptographic purposes, but is very fast and has excellent statistical properties.
The algorithm used here is translated from the xoshiro128plusplus.c
reference source code by
David Blackman and Sebastiano Vigna.
Trait Implementations
impl Clone for Xoshiro128PlusPlus
fn clone(&self) -> Self
impl Debug for Xoshiro128PlusPlus
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for Xoshiro128PlusPlus
impl PartialEq for Xoshiro128PlusPlus
fn eq(&self, other: &Self) -> bool
impl SeedableRng for Xoshiro128PlusPlus
type Seed = [u8; 16];fn from_seed(seed: [u8; 16]) -> Xoshiro128PlusPlusCreate a new
Xoshiro128PlusPlus. Ifseedis entirely 0, it will be mapped to a different seed.fn seed_from_u64(state: u64) -> SelfCreate a new
Xoshiro128PlusPlusfrom au64seed.This uses the SplitMix64 generator internally.
impl Serialize for Xoshiro128PlusPlus
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where __S: Serializer,
impl StructuralPartialEq for Xoshiro128PlusPlus
impl TryRng for Xoshiro128PlusPlus
type Error = never;fn try_next_u32(&mut self) -> Result<u32, Infallible>fn try_next_u64(&mut self) -> Result<u64, Infallible>fn try_fill_bytes(&mut self, dst: &mut [u8]) -> Result<(), Infallible>
impl<'de> Deserialize<'de> for Xoshiro128PlusPlus
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where __D: Deserializer<'de>,