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

Function rand_pow2

hail-fuzz/src/utils.rs:212–214  ·  view source on GitHub ↗
(mut rng: R, log2_max: u32)

Source from the content-addressed store, hash-verified

210}
211
212pub fn rand_pow2<R: Rng>(mut rng: R, log2_max: u32) -> u64 {
213 2_f32.powf(1.0 + (rng.gen::<f32>() * (log2_max as f32 - 1.0))).floor() as u64
214}
215
216/// Returns a count of the number of bytes within each stream shared with the parent input.
217pub fn count_parent_prefix(

Callers 2

extend_current_inputMethod · 0.85
havoc_v1Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected