@hackage dice-entropy-conduit1.0.0.0
Cryptographically secure n-sided dice via rejection sampling.
Categories
License
LGPL-2.1-only
Maintainer
peter.robinson@monoid.at
Links
- Homepage
- Documentation
- No source repository
- Security
Versions
Installation
Dependencies (5)
- base >=4 && <5
- bytestring >=0.9
- entropy >=0.3.2
- transformers >=0.4.0.0
- conduit >=1.1.7 Show all…
Dependents (3)
@hackage/acme-everything, @hackage/keysafe, @hackage/secret-sharing
This library uses rejection sampling to provide cryptographically secure
n
-sided dice rolls and random sampling (within a given range).
The number of used random bits is close to the information-theoretic optimal
bound.
The API provides a conduit interface.
See module System.Random.Dice
for a more detailed description.
Feedback is welcome!