Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- runRandomIO :: HasCryptoConfig env => MonadPseudoRandom ChaChaDRG a -> RIO env a
- runRandomSTM :: HasCryptoConfig env => MonadPseudoRandom ChaChaDRG a -> ReaderT env STM a
- class (Functor m, Monad m) => MonadRandom (m :: * -> *) where
runRandom
runRandomIO :: HasCryptoConfig env => MonadPseudoRandom ChaChaDRG a -> RIO env a #
Run a pure computation with the "global" deterministic random generator.
runRandomSTM :: HasCryptoConfig env => MonadPseudoRandom ChaChaDRG a -> ReaderT env STM a #
Run a pure computation with the "global" deterministic random generator.
Re-exports from Random
class (Functor m, Monad m) => MonadRandom (m :: * -> *) where #
getRandomBytes :: ByteArray byteArray => Int -> m byteArray #
Instances
MonadRandom IO | |
Defined in Crypto.Random.Types getRandomBytes :: ByteArray byteArray => Int -> IO byteArray # | |
DRG gen => MonadRandom (MonadPseudoRandom gen) | |
Defined in Crypto.Random.Types getRandomBytes :: ByteArray byteArray => Int -> MonadPseudoRandom gen byteArray # |