Skip to content

Commit 0e3296d

Browse files
authored
chacha20: update to rand_core v0.10.0-rc.1 (#475)
1 parent 2ab9d9b commit 0e3296d

File tree

5 files changed

+26
-22
lines changed

5 files changed

+26
-22
lines changed

.github/workflows/chacha20.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444

4545
minimal-versions:
4646
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
47+
if: false
4748
with:
4849
working-directory: ${{ github.workflow }}
4950

Cargo.lock

Lines changed: 19 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ members = [
1010

1111
[profile.dev]
1212
opt-level = 2
13+
14+
[patch.crates-io]
15+
# TODO: remove after rand_core v0.10.0-rc.1 is released
16+
rand_core = { git = "https://github.com/rust-random/rand", branch = "push-spqltotzmryv" }

chacha20/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ rand_core-compatible RNGs based on those ciphers.
2121
[dependencies]
2222
cfg-if = "1"
2323
cipher = { version = "0.5.0-rc.1", optional = true, features = ["stream-wrapper"] }
24-
rand_core = { version = "0.9", optional = true, default-features = false }
24+
rand_core = { version = "0.10.0-rc.1", optional = true, default-features = false }
2525

2626
# `zeroize` is an explicit dependency because this crate may be used without the `cipher` crate
2727
zeroize = { version = "1.8.1", optional = true, default-features = false }

chacha20/tests/rng.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#![cfg(feature = "rand_core")]
44

55
use proptest::prelude::*;
6+
use rand_chacha::rand_core::{RngCore as OldRngCore, SeedableRng as OldSeedableRng};
67
use rand_core::{RngCore, SeedableRng};
78

89
// Number of reads to perform from the RNG in equivalence tests

0 commit comments

Comments
 (0)