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-1.0.0.2 [2] http://hackage.haskell.org/package/MonadRandom On 3 April 2010 09:11, Alex Rozenshteyn <[email protected]> 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 > [email protected] > http://www.haskell.org/mailman/listinfo/haskell-cafe > >
_______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
