/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-4build7.
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 52 | name: dice-entropy-conduit
version: 1.0.0.1
id: dice-entropy-conduit-1.0.0.1-4TwdjSDbLYP1FdDKUFyeY2
key: dice-entropy-conduit-1.0.0.1-4TwdjSDbLYP1FdDKUFyeY2
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: 4a825e6709896ca9f44335b621464aac
trusted: False
import-dirs: /usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-8.0.2/dice-entropy-conduit-1.0.0.1-4TwdjSDbLYP1FdDKUFyeY2
library-dirs: /usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-8.0.2/dice-entropy-conduit-1.0.0.1-4TwdjSDbLYP1FdDKUFyeY2
dynamic-library-dirs: /usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-8.0.2
data-dir: /usr/share/dice-entropy-conduit
hs-libraries: HSdice-entropy-conduit-1.0.0.1-4TwdjSDbLYP1FdDKUFyeY2
depends:
base-4.9.1.0 bytestring-0.10.8.1
conduit-1.2.12.1-30kCH21Mh9e7TrhOji16e6
entropy-0.3.8-14HIw40nRRY968j6AdY1H4 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/
|