/var/lib/ghc/package.conf.d/dice-entropy-conduit-1.0.0.1.conf is in libghc-dice-entropy-conduit-dev 1.0.0.1-4+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | name: dice-entropy-conduit
version: 1.0.0.1
id: dice-entropy-conduit-1.0.0.1-JPK53ammaIQCiGVDhIp9hE
key: dice-entropy-conduit-1.0.0.1-JPK53ammaIQCiGVDhIp9hE
license: LGPL-2.1
copyright: Peter Robinson 2014
maintainer: peter.robinson@monoid.at
stability: experimental
homepage: http://monoid.at/code
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.
.
/Usage:/
.
If we wanted to use the system-specific entropy source ('systemEntropy') to
produce 10 dice rolls of a 6-sided dice (i.e. range [0,5]), we could write:
.
> > systemEntropy $$ diceRolls 6 =$= CL.take 10
> [5,1,3,3,0,5,3,2,2,1]
.
The function 'testPerformance' yields the actual number of consumed random
bits:
.
> > testPerformance 12 10000
> Generated 10000 random samples in range [0,11]
> Average number of bits used: 3.5904
> Entropy lower bound on the number of required bits: 3.5849625007211565
> Performance ratio: 1.0015167520658164
.
Feedback is welcome!
category: Cryptography, Data
author: Peter Robinson <peter.robinson@monoid.at>
exposed: True
exposed-modules:
System.Random.Dice System.Random.Dice.Internal
abi: d8c6f59d65f5186605575f73ef34eda3
trusted: False
import-dirs: /usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-8.0.1/dice-entropy-conduit-1.0.0.1-JPK53ammaIQCiGVDhIp9hE
library-dirs: /usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-8.0.1/dice-entropy-conduit-1.0.0.1-JPK53ammaIQCiGVDhIp9hE
data-dir: /usr/share/dice-entropy-conduit
hs-libraries: HSdice-entropy-conduit-1.0.0.1-JPK53ammaIQCiGVDhIp9hE
depends:
base-4.9.0.0 bytestring-0.10.8.1
conduit-1.2.8-6hIGes6x1wqJCxTfOzNGDJ
entropy-0.3.7-54dsRvsNlllHvcIX99CGiD transformers-0.5.2.0
haddock-interfaces: /usr/lib/ghc-doc/haddock/dice-entropy-conduit-1.0.0.1/dice-entropy-conduit.haddock
haddock-html: /usr/share/doc/libghc-dice-entropy-conduit-doc/html/
|