Skip to content

Commit 324069a

Browse files
committed
WIP
RandomGen is capable of generating ByteArray progress on bytestring generation Improve haddock Get the StatefulGen generation of ByteArray implemented Get it all building and tests passing Expose some useful helper functions
1 parent bc58313 commit 324069a

File tree

8 files changed

+262
-65
lines changed

8 files changed

+262
-65
lines changed

random.cabal

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ library
100100
deepseq >=1.1 && <2,
101101
mtl >=2.2 && <2.4,
102102
splitmix >=0.1 && <0.2
103+
if impl(ghc < 9.4)
104+
build-depends: data-array-byte
103105

104106
test-suite legacy-test
105107
type: exitcode-stdio-1.0

src/System/Random.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ module System.Random
2828
, Uniform
2929
, UniformRange
3030
, Finite
31+
-- * Generators for sequences of pseudo-random bytes
32+
, uniformByteArray
33+
, uniformByteString
34+
, uniformFillMutableByteArray
3135

3236
-- ** Standard pseudo-random number generator
3337
, StdGen

0 commit comments

Comments
 (0)