You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using this PoC, you can see that the expected range would be 50-100. However, when run using version 0.7.0, this sometimes generates values of 49. It doesn't matter what the lower bound is. It does this for i8, i16, i32, i64, and isize.
Package versions 0.6.0 && 0.6.1 do not produce this bug.
use nanorand::{Rng,WyRand};fnmain(){letmut test_seed = 0;let mi = 50;let ma = 100;'outer:loop{letmut rng = WyRand::new_seed(test_seed);for j in0..128{let v = rng.generate_range(mi..ma);if v < mi || v >= ma {println!("{} {} {}", test_seed, j, v);// break 'outer;}}
test_seed += 1;}}
The text was updated successfully, but these errors were encountered:
Using this PoC, you can see that the expected range would be 50-100. However, when run using version 0.7.0, this sometimes generates values of 49. It doesn't matter what the lower bound is. It does this for i8, i16, i32, i64, and isize.
Package versions 0.6.0 && 0.6.1 do not produce this bug.
The text was updated successfully, but these errors were encountered: