diff --git a/Cargo.toml b/Cargo.toml index 097fe7da..5b64f38d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -49,8 +49,8 @@ assert_cmd = "1" criterion = "0.3" libflate = "1" maplit = "1.0.1" -pretty_assertions = "0.6" -rand = { version = "0.7", features = ["small_rng"] } +pretty_assertions = "0.7" +rand = { version = "0.8", features = ["small_rng"] } testing_logger = "0.1.1" [profile.release] diff --git a/src/collapse/dtrace.rs b/src/collapse/dtrace.rs index 5afef211..1d47d4cb 100644 --- a/src/collapse/dtrace.rs +++ b/src/collapse/dtrace.rs @@ -513,10 +513,10 @@ mod tests { let inputs = common::testing::read_inputs(&INPUT)?; loop { - let nstacks_per_job = rng.gen_range(1, 500 + 1); + let nstacks_per_job = rng.gen_range(1..=500); let options = Options { includeoffset: rng.gen(), - nthreads: rng.gen_range(2, 32 + 1), + nthreads: rng.gen_range(2..=32), }; for (path, input) in inputs.iter() { diff --git a/src/collapse/perf.rs b/src/collapse/perf.rs index d6cf0889..a52d24d1 100644 --- a/src/collapse/perf.rs +++ b/src/collapse/perf.rs @@ -784,7 +784,7 @@ mod tests { let inputs = common::testing::read_inputs(&INPUT)?; loop { - let nstacks_per_job = rng.gen_range(1, 500 + 1); + let nstacks_per_job = rng.gen_range(1..=500); let options = Options { annotate_jit: rng.gen(), annotate_kernel: rng.gen(), @@ -792,7 +792,7 @@ mod tests { include_addrs: rng.gen(), include_pid: rng.gen(), include_tid: rng.gen(), - nthreads: rng.gen_range(2, 32 + 1), + nthreads: rng.gen_range(2..=32), }; for (path, input) in inputs.iter() {