Returns a random input from the corpus.
(&self, rng: &mut R)
| 117 | |
| 118 | /// Returns a random input from the corpus. |
| 119 | pub fn random<R: rand::Rng>(&self, rng: &mut R) -> &TestCase<D> { |
| 120 | self.test_cases.choose(rng).unwrap() |
| 121 | } |
| 122 | |
| 123 | /// Recomputes the inputs in the corpus that should be favored. |
| 124 | pub fn recompute_input_prioritization(&mut self) { |