diff --git a/libafl_bolts/src/math.rs b/libafl_bolts/src/math.rs index dec9a2f3d8..a794a0e1bf 100644 --- a/libafl_bolts/src/math.rs +++ b/libafl_bolts/src/math.rs @@ -29,7 +29,7 @@ pub fn calculate_cumulative_distribution_in_place(probabilities: &mut [f32]) -> } // Clamp the end of the vector to account for floating point errors. - *last = 1.0_f32; + *last = f32::INFINITY; Ok(()) }