ShortByteString package:random

Deprecated: In favor of uniformShortByteString
Same as uniformByteArray False, but for ShortByteString. Returns a ShortByteString of length n filled with pseudo-random bytes.

Examples

>>> import System.Random

>>> import Data.ByteString.Short (unpack)

>>> let pureGen = mkStdGen 137

>>> unpack . fst $ uniformShortByteString 10 pureGen
[51,123,251,37,49,167,90,109,1,4]
Deprecated: In favor of fillByteArrayST
Deprecated: In favor of fillByteArrayST, since uniformShortByteString, which it was used for, was also deprecated
Deprecated: In favor of uniformShortByteStringM
uniformShortByteString n g generates a ShortByteString of length n filled with pseudo-random bytes.