diff --git a/Cargo.toml b/Cargo.toml
index e887570..f1f1bc1 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -74,8 +74,7 @@ optional = true
 default-features = false
 
 [dev-dependencies.rand]
-version = "0.9"
-features = ["small_rng"]
+version = "0.10"
 
 [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.criterion]
 version = "0.5.0"
diff --git a/src/impls.rs b/src/impls.rs
index 0f1c038..aed7e86 100644
--- a/src/impls.rs
+++ b/src/impls.rs
@@ -76,7 +76,7 @@ macro_rules! impl_write_num {
 
             $(
 
-                use rand::{rngs::SmallRng, Rng, SeedableRng};
+                use rand::{rngs::SmallRng, RngExt, SeedableRng};
                 let mut rng = SmallRng::seed_from_u64(4); // chosen by fair dice roll.
                                                           // guaranteed to be random.
                 for _ in 0..1000 {
