Random Provider
Random providers provide random data, generally optimized for speed because fuzzing does not require cryptographically secure randomness.
We will use the default StdRand
:
Add the use
declaration for it:
#![allow(unused)] fn main() { use libafl::prelude::{StdRand, current_nanos}; }
And create the random source in your main
function:
#![allow(unused)] fn main() { let rand = StdRand::with_seed(current_nanos()); }