Re: Still wondering about random numbers...

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Still wondering about random numbers...
Дата
Msg-id 20010807141550.A17125@wolff.to
обсуждение исходный текст
Ответ на Re: Still wondering about random numbers...  (Thomas Lockhart <lockhart@fourpalms.org>)
Ответы Re: Still wondering about random numbers...  ("Dr. Evil" <drevil@sidereal.kz>)
Список pgsql-general
On Tue, Aug 07, 2001 at 04:36:23PM +0000,
  Thomas Lockhart <lockhart@fourpalms.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.

В списке pgsql-general по дате отправления:

Предыдущее
От: "Mitch Vincent"
Дата:
Сообщение: Re: Problems with Blank space
Следующее
От: wsheldah@lexmark.com
Дата:
Сообщение: Re: Problems with Blank space