From 3543f4b0258ecec04be570bbe9dc6e50d80bd3c1 Mon Sep 17 00:00:00 2001 From: Chris Beck Date: Thu, 19 May 2022 10:55:31 -0600 Subject: [PATCH] Make `CryptoRngCore` trait imply `CryptoRng` as well (#1230) --- rand_core/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rand_core/src/lib.rs b/rand_core/src/lib.rs index fdbf6675b96..1234a566c05 100644 --- a/rand_core/src/lib.rs +++ b/rand_core/src/lib.rs @@ -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; }