diff --git a/finlib/Cargo.toml b/finlib/Cargo.toml
index 115bda5..a318566 100644
--- a/finlib/Cargo.toml
+++ b/finlib/Cargo.toml
@@ -19,7 +19,7 @@ ndarray-stats = { workspace = true }
 nalgebra = { workspace = true }
 statrs = { workspace = true }
 log = { workspace = true }
-getrandom = "*"
+getrandom = "~0"
 
 [features]
 py = ["dep:pyo3"]