pub struct Xoroshiro64Star { /* fields omitted */ }
A xoroshiro64* random number generator.
The xoroshiro64* algorithm is not suitable for cryptographic purposes, but
is very fast and has good statistical properties, besides a low linear
complexity in the lowest bits.
The algorithm used here is translated from the xoroshiro64star.c
reference source code by
David Blackman and Sebastiano Vigna.
Seed a Xoroshiro64Star
from a u64
using SplitMix64
.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Fill dest
entirely with random data. Read more
Seed type, which is restricted to types mutably-dereferencable as u8
arrays (we recommend [u8; N]
for some N
). Read more
Create a new Xoroshiro64Star
. If seed
is entirely 0, it will be
mapped to a different seed.
Create a new PRNG using a u64
seed. Read more
Create a new PRNG seeded from another Rng
. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static