name: dice-entropy-conduit
version: 1.0.0.0
cabal-version: >=1.8
build-type: Simple
license: LGPL-2.1
license-file: LICENSE
author: Peter Robinson <peter.robinson@monoid.at>
maintainer: peter.robinson@monoid.at
copyright: Peter Robinson 2014
homepage: http://monoid.at/code
tested-with: GHC==7.8.3
stability: experimental
category: Cryptography, Data
synopsis: Cryptographically secure n-sided dice via rejection sampling.
description:
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!
library
hs-source-dirs: src
build-depends: base == 4.*
,bytestring >= 0.9
,entropy >= 0.3.2
,conduit >= 1.1.7
,transformers >= 0.4.0.0
ghc-options: -Wall
exposed-modules: System.Random.Dice
System.Random.Dice.Internal
test-suite Main
type: exitcode-stdio-1.0
x-uses-tf: true
build-depends: base >= 4 && < 5,
QuickCheck >= 2.4,
test-framework >= 0.4.1,
test-framework-quickcheck2
hs-source-dirs: src, tests
main-is: Tests.hs