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

MonadIO m => CryptoRNG (CryptoRNGT m) Source #