Trait libafl::generators::Generator [−][src]
pub trait Generator<I, R> where
I: Input,
R: Rand, { fn generate(&mut self, rand: &mut R) -> Result<I, Error>; fn generate_dummy(&self) -> I; }
Generators can generate ranges of bytes.
Required methods
fn generate(&mut self, rand: &mut R) -> Result<I, Error>
[src]
Generate a new input
fn generate_dummy(&self) -> I
[src]
Generate a new dummy input
Implementors
impl<R> Generator<BytesInput, R> for RandBytesGenerator<R> where
R: Rand,
[src]
impl<R> Generator<BytesInput, R> for RandBytesGenerator<R> where
R: Rand,
[src]fn generate_dummy(&self) -> BytesInput
[src]
fn generate_dummy(&self) -> BytesInput
[src]Generates up to DUMMY_BYTES_MAX
non-random dummy bytes (0)
impl<R> Generator<BytesInput, R> for RandPrintablesGenerator<R> where
R: Rand,
[src]
impl<R> Generator<BytesInput, R> for RandPrintablesGenerator<R> where
R: Rand,
[src]fn generate_dummy(&self) -> BytesInput
[src]
fn generate_dummy(&self) -> BytesInput
[src]Generates up to DUMMY_BYTES_MAX
non-random dummy bytes (0)