Re: Still wondering about random numbers...

From: Thomas Lockhart <lockhart(at)fourpalms(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Joe Conway <joseph(dot)conway(at)home(dot)com>
Cc: "Dr(dot) Evil" <drevil(at)sidereal(dot)kz>, pgsql-general(at)postgresql(dot)org
Subject: Re: Still wondering about random numbers...
Date: 2001-08-07 16:36:23
Message-ID: 3B701907.6DBE678C@fourpalms.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-patches

> > Looks like plain old C library random numbers. If you want to use
> > /dev/random or /dev/urandom, best bet would be to write your own C function.
> > You should also check through the contrib stuff -- I don't recall seeing RNG
> > functions in there,
> I don't see any in there either, but this seems like a fine candidate for
> a contrib item. I doubt we'd accept it into the mainstream for lack of
> portability, but as a contrib item, why not?

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...

- Thomas

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message gateley 2001-08-07 16:41:36 Re: Still wondering about random numbers...
Previous Message Nicholas Piper 2001-08-07 16:20:55 Re: Another seq scan instead of index question

Browse pgsql-patches by date

  From Date Subject
Next Message gateley 2001-08-07 16:41:36 Re: Still wondering about random numbers...
Previous Message Tom Lane 2001-08-07 16:00:56 Re: Still wondering about random numbers...