[Haskell-cafe] Re: True Random Numbers

Ertugrul Soeylemez es at ertes.de
Sat Apr 3 09:21:49 EDT 2010

Matthew Hayden <mrehayden at googlemail.com> wrote:

> What's wrong with the System.Random.StdGen implementation of
> RandomGen?[1] (I'm not sure if it's cryptographically safe)

It's a poor PRNG.  And no, it's not anywhere near suitable for
cryptographic applications.

> Someone (Cale IIRC) has already implemented a Rand monad[2] which is
> like a state monad but it keeps a RandomGen instead.


  by "Cale Gibbard and others"


nightmare = unsafePerformIO (getWrongWife >>= sex)

More information about the Haskell-Cafe mailing list