-
Notifications
You must be signed in to change notification settings - Fork 6
/
pcg-random.cabal
85 lines (79 loc) · 2.5 KB
/
pcg-random.cabal
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: pcg-random
version: 0.1.4.0
synopsis: Haskell bindings to the PCG random number generator.
description:
PCG is a family of simple fast space-efficient statistically good
algorithms for random number generation. Unlike many general-purpose
RNGs, they are also hard to predict.
.
This library implements bindings to the standard C implementation.
This includes the standard, unique, fast and single variants in the
pcg family. There is a pure implementation that can be used as a
generator with the random package as well as a faster primitive api
that includes functions for generating common types.
.
The generators in this module are suitable for use in parallel but
make sure threads don't share the same generator or things will go
horribly wrong.
license: BSD3
license-file: LICENSE
extra-source-files: README.md CHANGELOG.md c/LICENSE.txt
author: Christopher Chalmers
maintainer: [email protected]
Homepage: http://github.com/cchalmers/pcg-random
Bug-reports: http://github.com/cchalmers/pcg-random/issues
copyright: (c) 2014-2015. Christopher Chalmers <[email protected]>
category: System
build-type: Custom
cabal-version: >=1.10
custom-setup
setup-depends:
base >= 4 && <5,
Cabal,
cabal-doctest >= 1 && <1.1
source-repository head
type: git
location: git://github.com/cchalmers/pcg-random.git
library
exposed-modules:
System.Random.PCG
System.Random.PCG.Pure
System.Random.PCG.Class
System.Random.PCG.Fast
System.Random.PCG.Fast.Pure
System.Random.PCG.Unique
System.Random.PCG.Single
hs-source-dirs: src
ghc-options: -Wall
other-extensions: BangPatterns, CPP, ForeignFunctionInterface
build-depends:
base >=4.3 && < 5,
primitive >=0.7 && < 0.10,
random >=1.2 && < 2.0,
bytestring,
entropy
default-language: Haskell2010
cc-options:
-DMEXP=19937
-DNDEBUG
-finline-functions -fomit-frame-pointer
-fno-strict-aliasing
-std=c99 -fPIC
c-sources:
c/pcg-advance-128.c
c/pcg-advance-64.c
c/pcg-global-64.c
c/pcg-output-64.c
c/pcg-rngs-64.c
include-dirs: c
includes: pcg_variants.h
install-includes: pcg_variants.h
test-suite doctests
default-language: Haskell2010
type: exitcode-stdio-1.0
main-is: doctest.hs
hs-source-dirs: test
build-depends:
base,
doctest,
pcg-random