MCPcopy Create free account
hub / github.com/MultiFuzz/MultiFuzz / random_input

Function random_input

hail-fuzz/src/mutations.rs:15–21  ·  view source on GitHub ↗

Generate a completely random input

(fuzzer: &mut Fuzzer)

Source from the content-addressed store, hash-verified

13
14/// Generate a completely random input
15pub(crate) fn random_input(fuzzer: &mut Fuzzer) {
16 let stream = &mut fuzzer.state.input;
17 if let Some(key) = stream.last_read {
18 let bytes = &mut stream.streams.entry(key).or_default().bytes;
19 random_bytes(&mut fuzzer.rng, bytes);
20 }
21}
22
23/// A limit that controls the amount small streams are allowed to be extended by.
24const MIN_EXTENSION_LIMIT: usize = 256;

Callers 1

copy_current_inputMethod · 0.85

Calls 1

random_bytesFunction · 0.85

Tested by

no test coverage detected