Skip to content

Commit

Permalink
Add CryptoRng marker trait to ChaChaXCore
Browse files Browse the repository at this point in the history
  • Loading branch information
coltfred committed Mar 7, 2020
1 parent 2bb8594 commit 5ecaeb3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rand_chacha/src/chacha.rs
Original file line number Diff line number Diff line change
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 5ecaeb3

Please sign in to comment.