HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulerandom-bytestring-0.1.4Haskell2010

Data.ByteString.Random.PCG

Synopsis
valuerandom
  1. :: Natural

    Length of the result bytestring in bytes

  2. -> IO ByteString

Generate a random bytestring of length n. The PRNG is seeded from the system randomness source.

Property
ioProperty $ ((fromIntegral n ===) . B.length) <$> random n
Property
n > 4 ==> ioProperty $ (/=) <$> random n <*> random n

Orphan instances

1 instance