[Haskell-cafe] Annoyed at System.Random

Ertugrul Söylemez es at ertes.de
Fri May 4 02:26:21 CEST 2012


Thomas DuBuisson <thomas.dubuisson at gmail.com> wrote:

> I've grown annoyed at System.Random enough (specifically, StdGen).
> How much, if any, pushback would there be if I put together a FFI
> binding to a C AES-CTR based RNG.  There are many advantages:
>
> [...]
>
> I'd be tempted to pull in the 'entropy' package for seeding, but will
> make that a separate proposal.

Why reinvent the wheel?

    <http://hackage.haskell.org/package/cprng-aes>

Has both a System.Random and a Crypto-API interface.  As such it is
already connected to the 'entropy' package.


Greets,
Ertugrul

-- 
nightmare = unsafePerformIO (getWrongWife >>= sex)
http://ertes.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120504/f2910413/attachment.pgp>


More information about the Haskell-Cafe mailing list