rng-utils: RNG within an IORef for convenient concurrent use

[ bsd3, data, library, random ] [ Propose Tags ]

rng-utils aims to make it easy to generate an RNG and safely use it concurrently.

[Skip to Readme]
Versions 0.2, 0.2.1, 0.3.0
Change log changelog.md
Dependencies base (>=4.5 && <5), bytestring, random [details]
License BSD-3-Clause
Author Ozgun Ataman, Snap Framework Authors
Maintainer ozgun.ataman@soostone.com
Category Data, Random
Home page https://bitbucket.org/soostone/rng-utils
Bug tracker https://bitbucket.org/soostone/rng-utils/issues
Source repo head: git clone git@bitbucket.org:soostone/rng-utils.git
Uploaded by MichaelXavier at Fri Oct 20 22:26:14 UTC 2017
Distributions LTSHaskell:0.3.0, NixOS:0.3.0, Stackage:0.3.0
Downloads 1147 total (56 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-10-20 [all 1 reports]
Hackage Matrix CI





Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

For package maintainers and hackage trustees

Readme for rng-utils-0.3.0

[back to package description]


This simple utility wraps an IORef around random for the common use case of initializing an RNG once and using it in various places within an IO context. The haddocks should otherwise be self explanatory.

Any comments, improvement opportunities, feedback most welcome.

Upgrade Notes

In version 0.3.0, rng-utils switched from targeting mwc-random to random. random sees more use in the Haskell ecosystem, has fewer dependencies and the performance difference was negligible in comparison to the concurrency mechanism. If you feel strongly that mwc-random should be part of the library, let us know in an issue and we can look into supporting multiple backends.