gini-core-0.1.0.0

Safe HaskellNone
LanguageHaskell2010

Gini.Core

Description

General utilities used throughout the Gini codebase.

Synopsis

Documentation

withRandomGen :: HasCoreConfig env => (StdGen -> (a, StdGen)) -> ReaderT env STM a #

Run pure computation with a random generator. Not for cryptographically secure use!

randomRSTM :: (Random a, HasCoreConfig env) => (a, a) -> ReaderT env STM a #

Like randomR, but in STM. Not for cryptographically secure use!