lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On Wed, Jan 21, 2015 at 03:18:53PM +0000, Michael Savage wrote:
> lua-arc4random is a wrapper around OpenBSD's arc4random. It provides two
> methods, including a safe drop-in replacement for math.random.
> arc4random implements ChaCha20, which is a strong and efficient RNG,
> suitable for generating cryptographic secrets. It is also more robust
> than other methods like urandom, which fails when you run out of file
> descriptors, and has issues with chroots. You can find more information
> in the man file:
> Under the hood, I am using code from libressl-portable to provide the
> arc4random calls on operating systems that do not support it.
> Mike

I forgot to mention, it's on both luarocks and Github!