aboutsummaryrefslogtreecommitdiff
path: root/test/Gen.hs
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2025-04-23 15:11:26 +0200
committerTom Smeding <tom@tomsmeding.com>2025-04-23 15:11:26 +0200
commit3fd158069db42bc52bf21ca222502a651b71c29f (patch)
tree549d895e4b9dd197f4ffbe42d09f48e0c3ba0d7c /test/Gen.hs
parent9106993eeb2036f1dc5165535e1f2be77c273f59 (diff)
test: up 'random' dependency
Diffstat (limited to 'test/Gen.hs')
-rw-r--r--test/Gen.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Gen.hs b/test/Gen.hs
index 695b83f..244c735 100644
--- a/test/Gen.hs
+++ b/test/Gen.hs
@@ -124,7 +124,7 @@ genStorables rng f = do
n <- Gen.int rng
seed <- Gen.resize 99 $ Gen.int Range.linearBounded
let gen0 = Random.mkStdGen seed
- (bs, _) = Random.genByteString (8 * n) gen0
+ (bs, _) = Random.uniformByteString (8 * n) gen0
let readW64 i = sum (zipWith (*) (iterate (*256) 1) [fromIntegral (bs `BS.index` (8 * i + j)) | j <- [0..7]])
return $ VS.generate n (f . readW64)