Generate a random bytestring of length n. The PRNG is seeded from the system randomness source.
ioProperty $ ((fromIntegral n ===) . B.length) <$> random nn > 4 ==> ioProperty $ (/=) <$> random n <*> random n:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05
Modulerandom-bytestring-0.1.4Haskell2010
Generate a random bytestring of length n. The PRNG is seeded from the system randomness source.
ioProperty $ ((fromIntegral n ===) . B.length) <$> random nn > 4 ==> ioProperty $ (/=) <$> random n <*> random ng ~ GenIO => RandomWords g