Replace all bytes in the slice different values.
(rng: &mut R, input: &mut MultiStream)
| 49 | |
| 50 | /// Replace all bytes in the slice different values. |
| 51 | pub 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 | |
| 57 | pub const INTERESTING_VALUES: &[&[u8]] = &[ |
| 58 | &[0x00], // 0 |