Struct libafl_bolts::rands::Xoshiro256StarRand
source · pub struct Xoshiro256StarRand { /* private fields */ }
Expand description
XXH3 Based, hopefully speedy, rnd implementation
Implementations§
Trait Implementations§
source§impl Clone for Xoshiro256StarRand
impl Clone for Xoshiro256StarRand
source§fn clone(&self) -> Xoshiro256StarRand
fn clone(&self) -> Xoshiro256StarRand
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Xoshiro256StarRand
impl Debug for Xoshiro256StarRand
source§impl Default for Xoshiro256StarRand
impl Default for Xoshiro256StarRand
A default RNG will usually produce a nondeterministic stream of random numbers.
As we do not have any way to get random seeds for no_std
, they have to be reproducible there.
Use [$rand::with_seed
] to generate a reproducible RNG.
source§impl<'de> Deserialize<'de> for Xoshiro256StarRand
impl<'de> Deserialize<'de> for Xoshiro256StarRand
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Rand for Xoshiro256StarRand
impl Rand for Xoshiro256StarRand
source§fn below(&mut self, upper_bound_excl: u64) -> u64
fn below(&mut self, upper_bound_excl: u64) -> u64
Gets a value below the given 64 bit val (exclusive)
source§fn between(&mut self, lower_bound_incl: u64, upper_bound_incl: u64) -> u64
fn between(&mut self, lower_bound_incl: u64, upper_bound_incl: u64) -> u64
Gets a value between the given lower bound (inclusive) and upper bound (inclusive)
source§impl RandomSeed for Xoshiro256StarRand
impl RandomSeed for Xoshiro256StarRand
source§impl RngCore for Xoshiro256StarRand
impl RngCore for Xoshiro256StarRand
source§fn fill_bytes(&mut self, dest: &mut [u8])
fn fill_bytes(&mut self, dest: &mut [u8])
Fill
dest
with random data. Read moresource§impl Serialize for Xoshiro256StarRand
impl Serialize for Xoshiro256StarRand
impl Copy for Xoshiro256StarRand
Auto Trait Implementations§
impl RefUnwindSafe for Xoshiro256StarRand
impl Send for Xoshiro256StarRand
impl Sync for Xoshiro256StarRand
impl Unpin for Xoshiro256StarRand
impl UnwindSafe for Xoshiro256StarRand
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Tail, T> Prepend<T> for Tail
impl<Tail, T> Prepend<T> for Tail
§type PreprendResult = Tail
type PreprendResult = Tail
The Resulting
TupleList
, of an Prepend::prepend()
call,
including the prepended entry.source§fn prepend(self, value: T) -> (T, <Tail as Prepend<T>>::PreprendResult)
fn prepend(self, value: T) -> (T, <Tail as Prepend<T>>::PreprendResult)
Prepend a value to this tuple, returning a new tuple with prepended value.