diff --git a/Cargo.toml b/Cargo.toml index 1bad252..aad4b56 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ version = "1.1.1" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -rand = "0.7.3" +rand = "0.8.2" cfg-if = "1.0.0" [target.'cfg(unix)'.dependencies.libc] diff --git a/src/lib.rs b/src/lib.rs index 3100863..24e34f2 100755 --- a/src/lib.rs +++ b/src/lib.rs @@ -397,7 +397,7 @@ where #[inline] fn random_index(&self) -> usize { let mut rng = self.state().rng.lock(); - rng.gen_range(0, SHUFFLING_ARRAY_SIZE) + rng.gen_range(0..SHUFFLING_ARRAY_SIZE) } #[inline]