Skip to content

Commit

Permalink
Merge pull request #944 from coltfred/crypto-rng-chachacore
Browse files Browse the repository at this point in the history
Add CryptoRng marker trait to ChaChaXCore
  • Loading branch information
dhardy committed Mar 9, 2020
2 parents 108632c + 5ecaeb3 commit 8ed19df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rand_chacha/src/chacha.rs
Expand Up @@ -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
Expand Down

0 comments on commit 8ed19df

Please sign in to comment.