Safe Haskell | None |
---|---|
Language | Haskell98 |
Documentation
class InfiniteSource prg => PRG prg where Source #
The class that captures pseudo-random generators. Essentially the a pseudo-random generator (PRG) is a byte sources that can be seeded.
Stuff that can be generated by a pseudo-random generator.
Random Word Source # | |
Random Word16 Source # | |
Random Word32 Source # | |
Random Word64 Source # | |
Random IV Source # | |
Random KEY256 Source # | |
Random KEY192 Source # | |
Random KEY128 Source # | |
Random w => Random (BE w) Source # | |
Random w => Random (LE w) Source # | |
(Random a, Random b) => Random (a, b) Source # | |
(Random a, Random b, Random c) => Random (a, b, c) Source # | |
The system wide pseudo-random generator. The source is expected
to be of high quality, albeit a bit slow due to system call
overheads. It is expected that this source is automatically seeded
from the entropy pool maintained by the platform. Hence, it is
neither necessary nor possible to seed this generator which
reflected by the fact that the associated type
is the unit type Seed
SystemPRG
()
.