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

Method random

hail-fuzz/src/queue.rs:119–121  ·  view source on GitHub ↗

Returns a random input from the corpus.

(&self, rng: &mut R)

Source from the content-addressed store, hash-verified

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) {

Callers 1

choose_randomMethod · 0.80

Calls 1

chooseMethod · 0.80

Tested by

no test coverage detected