/
random-bytestring.cabal
189 lines (164 loc) · 4.81 KB
/
random-bytestring.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
Name: random-bytestring
Version: 0.1.4
Synopsis: Efficient generation of random bytestrings
Description:
__This package is deprecated__. Please, use
'genByteString' from the [random
package (version >=1.2)](https://hackage.haskell.org/package/random) instead.
.
Efficient generation of random bytestrings. The implementation
populates uninitialized memory with uniformily distributed random
64 bit words (and 8 bit words for remaining bytes at the end of
the bytestring).
.
Random words are generated using the PRNG from
the [mwc-random](https://hackage.haskell.org/package/mwc-random) package
or the [pcg-random](https://hackage.haskell.org/package/pcg-random)
package. It is also possible to use a custom PRNG by providing
an instance for the 'RandomWords' type class and using the function
'generate' from the module "Data.ByteString.Random.Internal".
.
The generated byte strings are suitable for statistical
applications. They are /not/ suitable for cryptographic
applications.
.
![benchmarks](https://hackage.haskell.org/package/random-bytestring-0.1.3.2/src/benchmarks.png)
.
![detailed benchmarks](https://hackage.haskell.org/package/random-bytestring-0.1.3.2/src/benchmarks-details.png)
Homepage: https://www.github.com/larskuhtz/random-bytestring
License: MIT
Author: Lars Kuhtz <lakuhtz@gmail.com>
Maintainer: Lars Kuhtz <lakuhtz@gmail.com>
Copyright: Copyright (c) 2017-2021 Lars Kuhtz <lakuhtz@gmail.com>
Category: System
Build-type: Simple
Cabal-version: 1.18
Tested-With:
GHC == 7.8.4
GHC == 7.10.2
GHC == 8.0.2
GHC == 8.2.2
GHC == 8.4.1
GHC == 8.6.5
GHC == 8.8.4
GHC == 8.10.3
GHC == 9.0.1
License-file: LICENSE
extra-doc-files:
README.md,
CHANGELOG.md
benchmarks.png
benchmarks-details.png
source-repository head
type: git
location: https://www.github.com/larskuhtz/random-bytestring
flag with-pcg
Description: compile with support for PCG from pcg-random
default: True
Library
default-language: Haskell2010
hs-source-dirs: src
exposed-modules:
Data.ByteString.Random
Data.ByteString.Random.Internal
Data.ByteString.Random.MWC
build-depends:
base >= 4.7 && < 5,
bytestring >= 0.10,
mwc-random >= 0.13
if impl(ghc < 7.10)
build-depends:
nats >= 1.1
if flag(with-pcg)
exposed-modules:
Data.ByteString.Random.PCG
build-depends:
pcg-random >= 0.1
ghc-options: -Wall -O2
Benchmark benchmark
default-language: Haskell2010
type: exitcode-stdio-1.0
main-is: benchmark.hs
hs-source-dirs: benchmark
ghc-options: -Wall -O2 -threaded -with-rtsopts=-N -rtsopts
build-depends:
random-bytestring,
async >= 2.1,
base >= 4.7 && < 5,
bytestring >= 0.10,
criterion >= 1.1,
entropy >= 0.3,
ghc-prim >= 0.3,
mwc-random >= 0.13,
primitive >= 0.6,
random >= 1.1,
cryptonite >= 0.24
if impl(ghc < 7.10)
build-depends:
nats >= 1.1
if impl(ghc < 7.10)
buildable: False
if flag(with-pcg)
build-depends:
pcg-random >= 0.1
other-modules:
Benchmarks
Implementations
Benchmark benchmark-compare
default-language: Haskell2010
type: exitcode-stdio-1.0
main-is: benchmark-compare.hs
hs-source-dirs: benchmark
ghc-options: -Wall -O2 -threaded -with-rtsopts=-N -rtsopts
build-depends:
random-bytestring,
async >= 2.1,
base >= 4.7 && < 5,
bytestring >= 0.10,
criterion >= 1.1,
entropy >= 0.3,
ghc-prim >= 0.3,
mwc-random >= 0.13,
primitive >= 0.6,
random >= 1.1,
cryptonite >= 0.24
if impl(ghc < 7.10)
build-depends:
nats >= 1.1
if impl(ghc < 7.10)
buildable: False
if flag(with-pcg)
build-depends:
pcg-random >= 0.1
other-modules:
Benchmarks,
Implementations
Benchmark eventlog-compare
default-language: Haskell2010
type: exitcode-stdio-1.0
main-is: eventlog-compare.hs
hs-source-dirs: benchmark
ghc-options: -Wall -O2 -threaded -with-rtsopts=-N -rtsopts -eventlog
build-depends:
random-bytestring,
async >= 2.1,
base >= 4.7 && < 5,
bytestring >= 0.10,
criterion >= 1.1,
entropy >= 0.3,
ghc-prim >= 0.3,
mwc-random >= 0.13,
primitive >= 0.6,
random >= 1.1,
cryptonite >= 0.24
if impl(ghc < 7.10)
build-depends:
nats >= 1.1
if impl(ghc < 7.10)
buildable: False
if flag(with-pcg)
build-depends:
pcg-random >= 0.1
other-modules:
Benchmarks,
Implementations