Re: Still wondering about random numbers...

From: "Dr(dot) Evil" <drevil(at)sidereal(dot)kz>
To: pgman(at)candle(dot)pha(dot)pa(dot)us
Cc: bruno(at)wolff(dot)to, lockhart(at)fourpalms(dot)org, pgsql-general(at)postgresql(dot)org
Subject: Re: Still wondering about random numbers...
Date: 2001-08-08 00:34:44
Message-ID: 20010808003444.11125.qmail@sidereal.kz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-patches

> Isn't /dev/random best used for seeding the random number generator,
> rather than for getting random number?

It is best used for any situation when quality random numbers are
needed. This includes seeding, and in some cases it may also include
generating session keys and other things. It's good to have a
choice. Right now I have a lot of pl/pgsql which calls plain old
RANDOM() to generate session keys, and that is not good. Before I
launch this thing, I will need to find a way of getting better random
numbers. If anyone has created a function like that for PG, please
mail me, because I need it.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Wheeler 2001-08-08 00:44:36 Long Query
Previous Message Martijn van Oosterhout 2001-08-07 23:55:35 Re: Error in communication with MSAccess

Browse pgsql-patches by date

  From Date Subject
Next Message Joe Conway 2001-08-08 00:53:20 Re: Re: Still wondering about random numbers...
Previous Message Bruce Momjian 2001-08-07 22:44:10 Re: Re: Still wondering about random numbers...