crypto-rng-0.1.1.0: 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.

Methods

randomBytes Source #

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.

Instance details

Defined in Crypto.RNG.Class

MonadIO m => CryptoRNG (CryptoRNGT m) Source # 
Instance details

Defined in Crypto.RNG