diff --git a/Cargo.toml b/Cargo.toml index 8c7a4e8..70e72e9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,4 +11,4 @@ documentation = "https://docs.rs/mapgen" edition = "2018" [dependencies] -rand = "0.7" +rand = "0.8" diff --git a/src/random.rs b/src/random.rs index 9ebd257..787a4c1 100644 --- a/src/random.rs +++ b/src/random.rs @@ -41,7 +41,7 @@ mod tests { #[test] fn test_range_average() { - let num_op = 1000; + let num_op = 10000; let mut rng = StdRng::seed_from_u64(1000); let xs: Vec = (0..num_op).map(|_| rng.random_range(5, 10)).collect(); let mean = xs.iter().sum::() / num_op;