The rng-utils package

[ Tags: 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
Dependencies base (>=4.5 && <5), bytestring, random [details]
License BSD3
Author Ozgun Ataman, Snap Framework Authors
Category Data, Random
Home page
Bug tracker
Source repo head: git clone
Uploaded Fri Oct 20 22:26:14 UTC 2017 by MichaelXavier
Distributions LTSHaskell:0.3.0, NixOS:0.3.0, openSUSE:0.3.0
Downloads 1024 total (32 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.