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]

Properties

Versions 0.2, 0.2.1, 0.3.0
Change log changelog.md
Dependencies base (>=4.5 && <5), bytestring, random [details]
License BSD3
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 repository head: git clone git@bitbucket.org:soostone/rng-utils.git
Uploaded Fri Oct 20 22:26:14 UTC 2017 by MichaelXavier
Distributions LTSHaskell:0.2.1, NixOS:0.3.0, Stackage:0.3.0, Tumbleweed:0.2.1
Downloads 663 total (20 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

Modules

[Index]

Flags

NameDescriptionDefaultType
lib-werrorDisabledManual

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

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for rng-utils-0.3.0

[back to package description]

rng-utils

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.