[Haskell-cafe] Re: True Random Numbers
rpglover64 at gmail.com
Sat Apr 3 15:03:45 EDT 2010
The Rand monad you linked seems to be a step in the right direction for what
I want, but it uses getStdGen, which appears to end up using cpu time to
seed the generator.
On Sat, Apr 3, 2010 at 9:21 AM, Ertugrul Soeylemez <es at ertes.de> wrote:
> Matthew Hayden <mrehayden at googlemail.com> wrote:
> > What's wrong with the System.Random.StdGen implementation of
> > RandomGen? (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 which is
> > like a state monad but it keeps a RandomGen instead.
> by "Cale Gibbard and others"
> nightmare = unsafePerformIO (getWrongWife >>= sex)
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe