Re: BUG #12589: Poor randomness from random() with some seeds; poor resolution

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Pedro Gimeno <pgsql-004(at)personal(dot)formauri(dot)es>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #12589: Poor randomness from random() with some seeds; poor resolution
Date: 2015-01-21 14:05:15
Message-ID: 19698.1421849115@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Pedro Gimeno <pgsql-004(at)personal(dot)formauri(dot)es> writes:
> Tom Lane wrote, On 2015-01-21 03:23:
>> Done.

> Thank you. As I said I consider that a poor solution in the long term
> (though probably a necessary one for current branches, for the reasons
> you stated). Would a patch in this area have any chance?

Personally I see no reason whatsoever to replace random(), and multiple
reasons not to. If you want a random-number generator with different
properties from what libc provides, write an extension.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Alvaro Herrera 2015-01-21 15:07:12 Re: BUG #12617: DETAIL: Could not read from file "pg_subtrans/06F8" at offset 90112: Success.
Previous Message Pedro Gimeno 2015-01-21 13:56:20 Re: BUG #12589: Poor randomness from random() with some seeds; poor resolution