Skip to content

Commit

Permalink
Update getrandom to v0.3 (#1741)
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov authored Jan 31, 2025
1 parent 88b3274 commit b5fbe34
Show file tree
Hide file tree
Showing 4 changed files with 148 additions and 48 deletions.
184 changes: 142 additions & 42 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion aead/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ pub trait AeadCore {
Nonce<Self>: Default,
{
let mut nonce = Nonce::<Self>::default();
getrandom::getrandom(&mut nonce)?;
getrandom::fill(&mut nonce)?;
Ok(nonce)
}

Expand Down
2 changes: 1 addition & 1 deletion crypto-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ hybrid-array = "0.2"

# optional dependencies
rand_core = { version = "0.6.4", optional = true }
getrandom = { version = "0.2", optional = true }
getrandom = { version = "0.3", optional = true }

[features]
getrandom = ["dep:getrandom", "rand_core?/getrandom"]
Expand Down
Loading

0 comments on commit b5fbe34

Please sign in to comment.