Skip to content

Commit 3543f4b

Browse files
author
Chris Beck
authored
Make CryptoRngCore trait imply CryptoRng as well (#1230)
1 parent f0f15b5 commit 3543f4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rand_core/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ pub trait CryptoRng {}
226226
/// buf
227227
/// }
228228
/// ```
229-
pub trait CryptoRngCore: RngCore {
229+
pub trait CryptoRngCore: CryptoRng + RngCore {
230230
/// Upcast to an [`RngCore`] trait object.
231231
fn as_rngcore(&mut self) -> &mut dyn RngCore;
232232
}

0 commit comments

Comments
 (0)