OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: How to use /dev/srandom

From: Ted Unangst (ted.unangstgmail.com)
Date: Wed Sep 29 2010 - 12:02:41 CDT


On Wed, Sep 29, 2010 at 12:49 PM, Kevin Chadwick <ma1l1istsyahoo.co.uk> wrote:
>> > And isn't srandom sometimes (very rarely!) appropriate? E.g. for
>> > generating encryption keys?

If arandom is somehow not appropriate for generating keys, it should
be fixed. I'd be interested to hear more.

> I notice arandom doesn't pause. Is arandom always better or only when
> there's enough entropy?

It is more efficient. There is almost always enough entropy for
arandom, and if there isn't, you would have a hard time detecting
that.