haskell-crypto / cryptonite

lowlevel set of cryptographic primitives for haskell
Other
226 stars 139 forks source link

Add RandomGen instance for ChaChaDRG #351

Closed kephas closed 3 years ago

vincenthz commented 3 years ago

As per the contribution guidelines: https://github.com/haskell-crypto/cryptonite/blob/master/CONTRIBUTING.md

I don't see a need to add random, and it could be harmful to have this instance also (confusion related to the cryptographic "quality" of the random generator). I think the best option if you want to do this, is providing your own newtype instance, which should be very similar to this patch