Re: Re: Still wondering about random numbers...

From: Doug McNaught <doug(at)wireboard(dot)com>
To: Allan Engelhardt <allane(at)cybaea(dot)com>
Cc: Bruno Wolff III <bruno(at)wolff(dot)to>, pgsql-general(at)postgresql(dot)org
Subject: Re: Re: Still wondering about random numbers...
Date: 2001-08-08 03:15:14
Message-ID: m3ae1bjl8d.fsf@belphigor.mcnaught.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-patches

Allan Engelhardt <allane(at)cybaea(dot)com> writes:

> On other motherboards, reading from /dev/random can stall
> indefinitely. This is not a Good Thing. /dev/urandom is fine, but
> not rally better than rand(3) or random(3).

Wrong; it's still a lot better, especially if you have a reasonable
amount of entropy coming in--/dev/urandom uses the same entropy pool
as /dev/random and generates its data using a cryptographically secure
hash function. This is still a lot better (for crypto purposes) than
the simple LCGs used in the standard C library functions.

See the random(4) manpage on your Linux system for more details.

-Doug
--
Free Dmitry Sklyarov!
http://www.freesklyarov.org/

We will return to our regularly scheduled signature shortly.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Doug McNaught 2001-08-08 03:18:24 Re: Long Query
Previous Message Lamar Owen 2001-08-08 02:49:13 Re: Re: Upgrade to 7.1 via RPM

Browse pgsql-patches by date

  From Date Subject
Next Message Allan Engelhardt 2001-08-08 10:22:31 Re: Re: Still wondering about random numbers...
Previous Message Joe Conway 2001-08-08 00:53:20 Re: Re: Still wondering about random numbers...