crypto-rng-0.1.0.1: Cryptographic random number generator.

Safe HaskellNone
LanguageHaskell2010

Crypto.RNG.Class

Synopsis

Documentation

class Monad m => CryptoRNG m where Source #

Monads carrying around the RNG state.

Minimal complete definition

randomBytes

Methods

randomBytes :: ByteLength -> m ByteString Source #

Generate given number of cryptographically secure random bytes.

Instances

(Monad (t m), MonadTrans t, CryptoRNG m) => CryptoRNG (t m) Source #

Generic, overlapping instance.

MonadIO m => CryptoRNG (CryptoRNGT m) Source #