| ||||||||||||||||||
| ||||||||||||||||||
Description | ||||||||||||||||||
This module is for instantiating cryptographically strong determinitic random bit generators (DRBGs, aka PRNGs) For the simple use case of using the system random number generator (System.Crypto.Random) to seed the DRBG: g <- newGenIO Users needing to provide their own entropy can call newGen directly entropy <- getEntropy nrBytes let generator = newGen entropy | ||||||||||||||||||
Synopsis | ||||||||||||||||||
| ||||||||||||||||||
Documentation | ||||||||||||||||||
class CryptoRandomGen g where | ||||||||||||||||||
| ||||||||||||||||||
data GenError | ||||||||||||||||||
| ||||||||||||||||||
newGenIO :: CryptoRandomGen g => IO g | ||||||||||||||||||
Use System.Crypto.Random to obtain entropy for newGen. | ||||||||||||||||||
Produced by Haddock version 2.7.2 |