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