(mut rng: R, log2_max: u32)
| 210 | } |
| 211 | |
| 212 | pub 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. |
| 217 | pub fn count_parent_prefix( |
no outgoing calls
no test coverage detected