Struct rand_pcg::Lcg128Xsl64 [−][src]
pub struct Lcg128Xsl64 { /* fields omitted */ }
Expand description
A PCG random number generator (XSL RR 128/64 (LCG) variant).
Permuted Congruential Generator with 128-bit state, internal Linear Congruential Generator, and 64-bit output via “xorshift low (bits), random rotation” output function.
This is a 128-bit LCG with explicitly chosen stream with the PCG-XSL-RR
output function. This combination is the standard pcg64
.
Despite the name, this implementation uses 32 bytes (256 bit) space
comprising 128 bits of state and 128 bits stream selector. These are both
set by SeedableRng
, using a 256-bit seed.
Implementations
Trait Implementations
We use a single 255-bit seed to initialise the state and select a stream.
One seed
bit (lowest bit of seed[8]
) is ignored.
Auto Trait Implementations
impl RefUnwindSafe for Lcg128Xsl64
impl Send for Lcg128Xsl64
impl Sync for Lcg128Xsl64
impl Unpin for Lcg128Xsl64
impl UnwindSafe for Lcg128Xsl64
Blanket Implementations
Mutably borrows from an owned value. Read more