From: | Bruno Wolff III <bruno(at)wolff(dot)to> |
---|---|
To: | Thomas Lockhart <lockhart(at)fourpalms(dot)org> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Still wondering about random numbers... |
Date: | 2001-08-07 19:15:50 |
Message-ID: | 20010807141550.A17125@wolff.to |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-patches |
On Tue, Aug 07, 2001 at 04:36:23PM +0000,
Thomas Lockhart <lockhart(at)fourpalms(dot)org> wrote:
>
> configure is our friend. A better random number generator is always
> welcome imho, and if it can be reliably supported through autoconf then
> it would stand a chance to be included in the main tree. Especially
> since the usage of random() seems to be very isolated in the code.
> contrib/ is always a good first step though...
'Better' is in the eye of the beholder. /dev/random can stall for
very long periods of time waiting for entropy. Even /dev/urandom may
be overkill for some uses of random numbers. There is also the question
of how many bytes the function is going to return.
While it would be nice to have some access to /dev/random and /dev/urandom,
I don't know that replacing the current random function is the best way
to do this.
From | Date | Subject | |
---|---|---|---|
Next Message | Mitch Vincent | 2001-08-07 19:26:31 | Re: Problems with Blank space |
Previous Message | Bruce Momjian | 2001-08-07 18:28:37 | Re: Admin tool |
From | Date | Subject | |
---|---|---|---|
Next Message | Greg Zoller | 2001-08-07 19:53:25 | JDBC2 Array Patch (New feature) |
Previous Message | Tom Lane | 2001-08-07 19:06:45 | Re: contrib/postgis spatial extensions |