Struct libafl_bolts::rands::Lehmer64Rand
source · pub struct Lehmer64Rand { /* private fields */ }
Expand description
XXH3 Based, hopefully speedy, rnd implementation
Implementations§
Trait Implementations§
source§impl Clone for Lehmer64Rand
impl Clone for Lehmer64Rand
source§fn clone(&self) -> Lehmer64Rand
fn clone(&self) -> Lehmer64Rand
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 Lehmer64Rand
impl Debug for Lehmer64Rand
source§impl Default for Lehmer64Rand
impl Default for Lehmer64Rand
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 Lehmer64Rand
impl<'de> Deserialize<'de> for Lehmer64Rand
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 Lehmer64Rand
impl Rand for Lehmer64Rand
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 Lehmer64Rand
impl RandomSeed for Lehmer64Rand
source§impl RngCore for Lehmer64Rand
impl RngCore for Lehmer64Rand
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 Lehmer64Rand
impl Serialize for Lehmer64Rand
impl Copy for Lehmer64Rand
Auto Trait Implementations§
impl RefUnwindSafe for Lehmer64Rand
impl Send for Lehmer64Rand
impl Sync for Lehmer64Rand
impl Unpin for Lehmer64Rand
impl UnwindSafe for Lehmer64Rand
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.