Skip to content

Commit

Permalink
build: upgrade getrandom to v0.3.0 (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
paolobarbolini authored Jan 25, 2025
1 parent a4596e5 commit 3693c01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
2 changes: 1 addition & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub fn create_helper<R>(
))]
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));
}
}
Expand Down

0 comments on commit 3693c01

Please sign in to comment.