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

Function randomize_input

hail-fuzz/src/utils.rs:51–55  ·  view source on GitHub ↗

Replace all bytes in the slice different values.

(rng: &mut R, input: &mut MultiStream)

Source from the content-addressed store, hash-verified

49
50/// Replace all bytes in the slice different values.
51pub fn randomize_input<R: Rng>(rng: &mut R, input: &mut MultiStream) {
52 for stream in input.streams.values_mut() {
53 stream.bytes.iter_mut().for_each(|b| *b = rng.gen::<u8>())
54 }
55}
56
57pub const INTERESTING_VALUES: &[&[u8]] = &[
58 &[0x00], // 0

Callers 1

startMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected