lua-users home
lua-l archive

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


Rob Kendrick <rjek@rjek.com> wrote:
> On Thu, Jan 26, 2012 at 11:29:18AM +0100, Florian Weimer wrote:
>
> > Reading from /dev/urandom might be problematic because drains entropy
> > from the whole system.
>
> Not to mention making non-Linux users sad.

Neither of these is a problem on Mac OS X or FreeBSD :-)

But Windows and some commercial unices need something else.

Places to look for inspiration: Python's os.urandom(); Perl_seed() in
perl's util.c; OpenSSL crypto/rand/rand_*.c; Apache APR misc/*/rand.c.

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
Dogger, Fisher, German Bight: Southeasterly, becoming cyclonic later, 6 to
gale 8, occasionally severe gale 9 in Fisher, decreasing 4 or 5 at times.
Moderate or rough, occasionally very rough. Rain then showers. Moderate or
good.