Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class Monad m => CryptoRNG m where
- randomBytes :: ByteLength -> m ByteString
Documentation
class Monad m => CryptoRNG m where Source #
Monads carrying around the RNG state.
:: ByteLength | number of bytes to generate |
-> m ByteString |
Generate given number of cryptographically secure random bytes.
Instances
(Monad (t m), MonadTrans t, CryptoRNG m) => CryptoRNG (t m) Source # | Generic, overlapping instance. |
Defined in Crypto.RNG.Class randomBytes :: ByteLength -> t m ByteString Source # | |
MonadIO m => CryptoRNG (CryptoRNGT m) Source # | |
Defined in Crypto.RNG randomBytes :: ByteLength -> CryptoRNGT m ByteString Source # |