diff --git a/Cargo.toml b/Cargo.toml index 80181469b..942d682ef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,7 +23,7 @@ fastrand = "2.1.1" once_cell = { version = "1.19.0", default-features = false, features = ["std"] } [target.'cfg(any(unix, windows, target_os = "wasi"))'.dependencies] -getrandom = { version = "0.2.15", default-features = false, optional = true } +getrandom = { version = "0.3.0", default-features = false, optional = true } [target.'cfg(any(unix, target_os = "wasi"))'.dependencies] rustix = { version = "0.38.39", features = ["fs"] } diff --git a/src/util.rs b/src/util.rs index 9bbfef98d..63518b583 100644 --- a/src/util.rs +++ b/src/util.rs @@ -47,7 +47,7 @@ pub fn create_helper( ))] if i == 3 { let mut seed = [0u8; 8]; - if getrandom::getrandom(&mut seed).is_ok() { + if getrandom::fill(&mut seed).is_ok() { fastrand::seed(u64::from_ne_bytes(seed)); } }