guile-devel
[Top][All Lists]
Advanced

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

Re: Improve `seed->random-state' in stable-2.0?


From: Mark H Weaver
Subject: Re: Improve `seed->random-state' in stable-2.0?
Date: Sat, 21 Jan 2012 03:20:26 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)

David Kastrup <address@hidden> writes:
> Actually, you don't need a PRNG at all.  Generate a _good_ random
> starting value, and count sequentially from there.

This is _exactly_ what my patch does, on a per-thread basis.
The starting value is read directly from /dev/urandom if available.

However, if /dev/urandom cannot be read, the PRNG is used to generate
the starting value.  This is a last resort, and ideally we should never
use it.

   Thanks,
     Mark



reply via email to

[Prev in Thread] Current Thread [Next in Thread]