Skip to content

Commit

Permalink
chacha20: bump rand_core to v0.9 (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarcieri authored Jan 28, 2025
1 parent c4250fb commit 87b3507
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 8 deletions.
32 changes: 26 additions & 6 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 chacha20/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ categories = ["cryptography", "no-std"]
[dependencies]
cfg-if = "1"
cipher = { version = "=0.5.0-pre.7", optional = true }
rand_core = { version = "0.9.0-alpha.2", optional = true, default-features = false }
rand_core = { version = "0.9", optional = true, default-features = false }
serde = { version = "1.0", features = ["derive"], optional = true }

# `zeroize` is an explicit dependency because this crate may be used without the `cipher` crate
Expand Down
2 changes: 1 addition & 1 deletion chacha20/src/rng.rs
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ pub(crate) mod tests {
let mut rng1 = ChaChaRng::from_seed(seed);
assert_eq!(rng1.next_u32(), 137206642);

let mut rng2 = ChaChaRng::from_rng(rng1);
let mut rng2 = ChaChaRng::from_rng(&mut rng1);
assert_eq!(rng2.next_u32(), 1325750369);
}

Expand Down

0 comments on commit 87b3507

Please sign in to comment.