Skip to content

Commit da340e0

Browse files
committed
Update for rand_core#34: removal of RngCore impl for BlockRng
1 parent bd5ee18 commit da340e0

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,4 @@ serde_json = "1.0.140"
8888

8989
[patch.crates-io.rand_core]
9090
git = "https://github.com/rust-random/rand_core.git"
91-
rev = "5d19070a"
91+
rev = "8d1d8577"

benches/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ harness = false
5959

6060
[patch.crates-io.rand_core]
6161
git = "https://github.com/rust-random/rand_core.git"
62-
rev = "5d19070a"
62+
rev = "8d1d8577"

rand_chacha/src/chacha.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,12 @@ macro_rules! chacha_impl {
116116
impl RngCore for $ChaChaXRng {
117117
#[inline]
118118
fn next_u32(&mut self) -> u32 {
119-
self.rng.next_u32()
119+
self.rng.next_word()
120120
}
121121

122122
#[inline]
123123
fn next_u64(&mut self) -> u64 {
124-
self.rng.next_u64()
124+
self.rng.next_u64_from_u32()
125125
}
126126

127127
#[inline]

src/rngs/reseeding.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,12 @@ where
107107
{
108108
#[inline(always)]
109109
fn next_u32(&mut self) -> u32 {
110-
self.0.next_u32()
110+
self.0.next_word()
111111
}
112112

113113
#[inline(always)]
114114
fn next_u64(&mut self) -> u64 {
115-
self.0.next_u64()
115+
self.0.next_u64_from_u32()
116116
}
117117

118118
fn fill_bytes(&mut self, dest: &mut [u8]) {

0 commit comments

Comments
 (0)