pub fn init_fuzzing()Expand description
One time start up initialization for fuzzing:
-
Enables
env_logger. -
Restricts
rayonto a single thread in its thread pool, for more deterministic executions.
If a fuzz target is taking raw input bytes from the fuzzer, it is fine to
call this function in the fuzz target’s oracle or in the fuzz target
itself. However, if the fuzz target takes an Arbitrary type, and the
Arbitrary implementation is not derived and does interesting things, then
the Arbitrary implementation should call this function, since it runs
before the fuzz target itself.