lol-0.2.0.0: A library for lattice cryptography.

Safe HaskellNone
LanguageHaskell2010

Crypto.Lol.Types.Random

Description

Defines a newtype wrapper for crypto-api's CryptoRandomGen, and a corresponding RandomGen instance. CryptoRandomGen generators can only be used to get ByteStrings; the RandomGen instance allows them to be used to generate any Random type. Typical usage is with Control.Monad.Random's RandT monad.

Documentation