pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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: Wed, 21 Jan 2015 09:05:15 -0500
Message-ID: <19698.1421849115@sss.pgh.pa.us> (raw)
In-Reply-To: <54BFB004.5020002@personal.formauri.es>
References: <20150118175056.1983.60420@wrigleys.postgresql.org>
	<25876.1421680975@sss.pgh.pa.us>
	<54BD410D.2090709@personal.formauri.es>
	<10225.1421722783@sss.pgh.pa.us>
	<54BDEE5A.5040008@personal.formauri.es>
	<2409.1421806995@sss.pgh.pa.us>
	<54BFB004.5020002@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-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


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (8+ messages)

Message-ID: <19698.1421849115@sss.pgh.pa.us>
Permalink:  ../19698.1421849115@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19698.1421849115@sss.pgh.pa.us

 · 

reply

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: <19698.1421849115@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> <54BDEE5A.5040008@personal.formauri.es> <2409.1421806995@sss.pgh.pa.us> <54BFB004.5020002@personal.formauri.es> <19698.1421849115@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