Struct libafl::generators::RandBytesGenerator
source · pub struct RandBytesGenerator<S>where
S: HasRand,{ /* private fields */ }
Expand description
Generates random bytes
Implementations§
source§impl<S> RandBytesGenerator<S>where
S: HasRand,
impl<S> RandBytesGenerator<S>where
S: HasRand,
sourcepub fn new(max_size: usize) -> Self
pub fn new(max_size: usize) -> Self
Returns a new RandBytesGenerator
, generating up to max_size
random bytes.
Trait Implementations§
source§impl<S> Clone for RandBytesGenerator<S>where
S: HasRand + Clone,
impl<S> Clone for RandBytesGenerator<S>where
S: HasRand + Clone,
source§fn clone(&self) -> RandBytesGenerator<S>
fn clone(&self) -> RandBytesGenerator<S>
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<S> Generator<BytesInput, S> for RandBytesGenerator<S>where
S: HasRand,
impl<S> Generator<BytesInput, S> for RandBytesGenerator<S>where
S: HasRand,
source§fn generate_dummy(&self, _state: &mut S) -> BytesInput
fn generate_dummy(&self, _state: &mut S) -> BytesInput
Generates up to DUMMY_BYTES_MAX
non-random dummy bytes (0)
Auto Trait Implementations§
impl<S> RefUnwindSafe for RandBytesGenerator<S>where
S: RefUnwindSafe,
impl<S> Send for RandBytesGenerator<S>where
S: Send,
impl<S> Sync for RandBytesGenerator<S>where
S: Sync,
impl<S> Unpin for RandBytesGenerator<S>where
S: Unpin,
impl<S> UnwindSafe for RandBytesGenerator<S>where
S: UnwindSafe,
Blanket Implementations§
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.