diff --git a/Cargo.toml b/Cargo.toml
index 3867fa4..01a4c40 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -455,12 +455,12 @@ features = [
 optional = true
 
 [dependencies.rand]
-version = "0.9"
+version = "0.10"
 optional = true
 default-features = false
 
 [dependencies.rand_core]
-version = "0.6"
+version = "0.10"
 optional = true
 
 [dependencies.regex]
@@ -532,7 +532,7 @@ version = "1"
 default-features = false
 
 [dev-dependencies.rand]
-version = "0.9"
+version = "0.10"
 features = [
     "std",
     "std_rng",
diff --git a/src/cert.rs b/src/cert.rs
index 9419908..fee8baa 100644
--- a/src/cert.rs
+++ b/src/cert.rs
@@ -5471,7 +5471,7 @@ mod test {
     fn key_revoked() {
         use crate::types::Features;
         use crate::packet::key::Key6;
-        use rand::{rng, Rng, distr::Open01};
+        use rand::{rng, RngExt, distr::Open01};
 
         let p = &P::new();
 
