diff --git a/Cargo.toml b/Cargo.toml
index b8fecba..71f51c4 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -39,5 +39,5 @@ all-features = true
 debug = true
 
 [dependencies.rand]
-version = "0.8.5"
+version = "0.10"
 optional = true
diff --git a/src/replacement.rs b/src/replacement.rs
index 4b6793d..0a9f59b 100644
--- a/src/replacement.rs
+++ b/src/replacement.rs
@@ -54,8 +54,8 @@ pub struct RandomReplacement<R = rand::rngs::StdRng> {
 impl Default for RandomReplacement<rand::rngs::StdRng> {
     #[inline]
     fn default() -> Self {
-        use rand::{Rng, SeedableRng};
-        let rng = rand::rngs::StdRng::seed_from_u64(rand::rngs::OsRng.gen());
+        use rand::{TryRng, SeedableRng};
+        let rng = rand::rngs::StdRng::seed_from_u64(rand::rngs::SysRng.try_next_u64().unwrap());
         RandomReplacement { rng }
     }
 }
