Skip to content

Commit

Permalink
Make CryptoRngCore trait imply CryptoRng as well (#1230)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Beck authored May 19, 2022
1 parent f0f15b5 commit 3543f4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rand_core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ pub trait CryptoRng {}
/// buf
/// }
/// ```
pub trait CryptoRngCore: RngCore {
pub trait CryptoRngCore: CryptoRng + RngCore {
/// Upcast to an [`RngCore`] trait object.
fn as_rngcore(&mut self) -> &mut dyn RngCore;
}
Expand Down

0 comments on commit 3543f4b

Please sign in to comment.