Trait libafl::utils::Rand[][src]

pub trait Rand: Debug + Serialize + DeserializeOwned {
    fn set_seed(&mut self, seed: u64);
fn next(&mut self) -> u64; fn below(&mut self, upper_bound_excl: u64) -> u64 { ... }
fn between(&mut self, lower_bound_incl: u64, upper_bound_incl: u64) -> u64 { ... } }

Ways to get random around here Please note that these are not cryptographically secure Or, even if some might be by accident, at least they are not seeded in a cryptographically secure fashion.

Required methods

fn set_seed(&mut self, seed: u64)[src]

Sets the seed of this Rand

fn next(&mut self) -> u64[src]

Gets the next 64 bit value

Loading content...

Provided methods

fn below(&mut self, upper_bound_excl: u64) -> u64[src]

Gets a value below the given 64 bit val (inclusive)

fn between(&mut self, lower_bound_incl: u64, upper_bound_incl: u64) -> u64[src]

Gets a value between the given lower bound (inclusive) and upper bound (inclusive)

Loading content...

Implementors

impl Rand for Lehmer64Rand[src]

fn set_seed(&mut self, seed: u64)[src]

fn next(&mut self) -> u64[src]

impl Rand for RomuDuoJrRand[src]

fn set_seed(&mut self, seed: u64)[src]

fn next(&mut self) -> u64[src]

impl Rand for RomuTrioRand[src]

fn set_seed(&mut self, seed: u64)[src]

fn next(&mut self) -> u64[src]

impl Rand for XorShift64Rand[src]

fn set_seed(&mut self, seed: u64)[src]

fn next(&mut self) -> u64[src]

impl Rand for Xoshiro256StarRand[src]

fn set_seed(&mut self, seed: u64)[src]

fn next(&mut self) -> u64[src]

Loading content...