From: Tom Lane <tgl@sss.pgh.pa.us>
To: Pedro Gimeno <pgsql-004@personal.formauri.es>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #12589: Poor randomness from random() with some seeds; poor resolution
Date: Mon, 19 Jan 2015 21:59:43 -0500
Message-ID: <10225.1421722783@sss.pgh.pa.us> (raw)
In-Reply-To: <54BD410D.2090709@personal.formauri.es>
References: <20150118175056.1983.60420@wrigleys.postgresql.org>
<25876.1421680975@sss.pgh.pa.us>
<54BD410D.2090709@personal.formauri.es>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Pedro Gimeno <pgsql-004@personal.formauri.es> writes:
> Tom Lane wrote, On 2015-01-19 16:22:
>> This is not a bug; it's a feature request, and a rather poorly
>> grounded one at that.
> It's a purportedly random sequence that turns out not to be random, with
> not even a caveat in the manual. That's a bug.
It is absolutely arguable that this is a glibc bug, so I encourage you
to submit a bug report to them and see what happens. However, Postgres'
random() function is clearly documented to be just a thin layer over the
platform's random() function:
The characteristics of the values returned by random() depend on
the system implementation.
That seems to me to be a sufficient "caveat".
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, pgsql-004@personal.formauri.es
Subject: Re: BUG #12589: Poor randomness from random() with some seeds; poor resolution
In-Reply-To: <10225.1421722783@sss.pgh.pa.us>
References: <20150118175056.1983.60420@wrigleys.postgresql.org> <25876.1421680975@sss.pgh.pa.us> <54BD410D.2090709@personal.formauri.es> <10225.1421722783@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox