yesod-session-persist-0.0.0.2: SQL session backend for Yesod
Safe HaskellSafe-Inferred
LanguageGHC2021

Randomization

Synopsis

Documentation

newtype Randomization m Source #

General means of obtaining randomness

Constructors

Randomization 

Fields

deterministicallyRandom :: DeterministicRandomization -> IO (Randomization IO) Source #

Convert from a deterministic generator to an effectful one

newtype DeterministicRandomization Source #

A deterministic random generator

Constructors

DeterministicRandomization 

Fields

hoistRandomization :: (forall a. m a -> m' a) -> Randomization m -> Randomization m' Source #

defaultRandomization :: IO (Randomization IO) Source #

Cryptographically secure deterministic randomization seeded from system entropy using ChaChaDRG from the crypton package