[Haskell-cafe] Cryptographically secure random numbers?

Nicholas Vanderweit nick.vanderweit at gmail.com
Sun Oct 5 16:38:23 UTC 2014


I've used this wrapper around the NaCl crypto library to generate random
numbers:

http://thoughtpolice.github.io/salt/


Nick

On Sunday, October 5, 2014, Bardur Arantsson <spam at scientician.net> wrote:

> Hi all,
>
> I'm in a situation where I have to generate cryptographically secure
> random UUIDs, i.e. ones that cannot feasibly be guessed/predicted.
>
> Does anyone know what options there are in this space?
>
> Ideally, I'd like to fulfill as many of these points as possible:
>
> - Few big/complicated dependencies.
> - Avoid native C if possible (ditto for non-base dependencies).
> - Avoid RDRAND if possible.
> - Non-opaque UUID type.
> - Cross-platform if possible, but the main platform would be Linux.
>
> (Generating a UUID from a random stream would be trivial, so obviously a
> library for secure random numbers would be a-okay too.)
>
> Any suggestions?
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org <javascript:;>
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20141005/ef3f79ab/attachment.html>


More information about the Haskell-Cafe mailing list