Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YDP2r-0000vo-94 for pgsql-bugs@arkaria.postgresql.org; Tue, 20 Jan 2015 02:59:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YDP2q-0007bY-J4 for pgsql-bugs@arkaria.postgresql.org; Tue, 20 Jan 2015 02:59:56 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YDP2p-0007bS-TT for pgsql-bugs@postgresql.org; Tue, 20 Jan 2015 02:59:56 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YDP2m-0006ry-NC for pgsql-bugs@postgresql.org; Tue, 20 Jan 2015 02:59:54 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t0K2xhDW010226; Mon, 19 Jan 2015 21:59:44 -0500 From: Tom Lane To: Pedro Gimeno cc: pgsql-bugs@postgresql.org Subject: Re: BUG #12589: Poor randomness from random() with some seeds; poor resolution 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> Comments: In-reply-to Pedro Gimeno message dated "Mon, 19 Jan 2015 18:38:21 +0100" Date: Mon, 19 Jan 2015 21:59:43 -0500 Message-ID: <10225.1421722783@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Pedro Gimeno 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