dice-entropy-conduit: Cryptographically secure n-sided dice via rejection sampling

[ cryptography, data, lgpl, library ] [ Propose Tags ]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 1.0.0.0, 1.0.0.1, 1.0.0.3
Change log ChangeLog.md
Dependencies base (>=4.6 && <5), bytestring (>=0.9), conduit (>=1.1.7), entropy (>=0.3.2), transformers (>=0.4.0.0) [details]
License LGPL-2.1-only
Copyright 2014-2020 Peter Robinson
Author Peter Robinson
Maintainer pwr@lowerbound.io
Category Data, Cryptography
Home page https://github.com/pwrobinson/dice-entropy-conduit#readme
Bug tracker https://github.com/pwrobinson/dice-entropy-conduit/issues
Source repo head: git clone https://github.com/pwrobinson/dice-entropy-conduit
Uploaded by PeterRobinson at 2020-05-09T14:52:36Z
Distributions Debian:1.0.0.3, NixOS:1.0.0.3
Reverse Dependencies 2 direct, 1 indirect [details]
Downloads 2515 total (16 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2020-05-09 [all 1 reports]

Readme for dice-entropy-conduit-1.0.0.3

[back to package description]

This library uses rejection sampling to provide cryptographically secure n-sided dice rolls and random sampling (within a given range).

Usage:

If we want to use the system-specific entropy source (systemEntropy) to produce 10 dice rolls of a 6-sided dice (i.e. range [0,5]), you can write:

systemEntropy $$ diceRolls 6 =$= CL.take 10 [5,1,3,3,0,5,3,2,2,1]