[Haskell-cafe] True Random Numbers

Matthew Hayden mrehayden at googlemail.com
Sat Apr 3 04:57:55 EDT 2010

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

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

As an aside, there is no such Arrow or ArrowTransormer, but I intend to make
one as soon as I am able. Useful for Arrowised FRP.

[1] http://hackage.haskell.org/package/random-
[2] http://hackage.haskell.org/package/MonadRandom

On 3 April 2010 09:11, Alex Rozenshteyn <rpglover64 at gmail.com> wrote:

> Does haskell have a way of using /dev/random to generate random *things*?
> Currently I'm just reading the data into a byte string, converting it into
> bits, and keeping track of it in the state monad.
> --
>          Alex R
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100403/a6b3a49f/attachment.html

More information about the Haskell-Cafe mailing list