| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Crypto.RNG.Class
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.
Methods
Arguments
| :: 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 Methods randomBytes :: ByteLength -> t m ByteString Source # | |
| MonadIO m => CryptoRNG (CryptoRNGT m) Source # | |
Defined in Crypto.RNG Methods randomBytes :: ByteLength -> CryptoRNGT m ByteString Source # | |