From 5ecaeb3b4fdb12450b77666b87d921208703314a Mon Sep 17 00:00:00 2001 From: Colt Frederickson Date: Sat, 7 Mar 2020 11:47:09 -0700 Subject: [PATCH] Add CryptoRng marker trait to ChaChaXCore --- rand_chacha/src/chacha.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rand_chacha/src/chacha.rs b/rand_chacha/src/chacha.rs index 1865495d17e..cf68c52c2aa 100644 --- a/rand_chacha/src/chacha.rs +++ b/rand_chacha/src/chacha.rs @@ -100,6 +100,8 @@ macro_rules! chacha_impl { } } + impl CryptoRng for $ChaChaXCore {} + /// A cryptographically secure random number generator that uses the ChaCha algorithm. /// /// ChaCha is a stream cipher designed by Daniel J. Bernstein[^1], that we use as an RNG. It is