(rng: &mut R)
| 257 | |
| 258 | #[allow(unused)] |
| 259 | fn random_weights<R: Rng>(rng: &mut R) -> Self { |
| 260 | let weights = ALL_MUTATIONS.iter().map(|_| rng.gen_range(0..100)).collect(); |
| 261 | let Ok(mutation_distr) = WeightedAliasIndex::new(weights) |
| 262 | else { |
| 263 | return HavocMutator::new(); |
| 264 | }; |
| 265 | Self { mutation_distr } |
| 266 | } |
| 267 | |
| 268 | pub(crate) fn havoc_bytes<R>( |
| 269 | &self, |
nothing calls this directly
no outgoing calls
no test coverage detected