Trait libafl::state::HasRand

source ·
pub trait HasRand {
    type Rand: Rand;

    fn rand(&self) -> &Self::Rand;
    fn rand_mut(&mut self) -> &mut Self::Rand;
}
Expand description

Trait for elements offering a rand

Required Associated Types§

source

type Rand: Rand

The associated type implementing Rand

Required Methods§

source

fn rand(&self) -> &Self::Rand

The rand instance

source

fn rand_mut(&mut self) -> &mut Self::Rand

The rand instance (mutable)

Implementors§

source§

impl<I, C, R, SC> HasRand for StdState<I, C, R, SC>where
    R: Rand,

§

type Rand = R