Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ndz2U-0006a3-4Y for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Apr 2022 18:45:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ndz2T-0008R0-0e for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Apr 2022 18:45:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ndz2S-0008Qr-NE for pgsql-hackers@lists.postgresql.org; Mon, 11 Apr 2022 18:45:24 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ndz2Q-0004II-ON for pgsql-hackers@lists.postgresql.org; Mon, 11 Apr 2022 18:45:24 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 23BIjJUt432791; Mon, 11 Apr 2022 14:45:19 -0400 From: Tom Lane To: =?utf-8?Q?Dagfinn_Ilmari_Manns=C3=A5ker?= cc: pgsql-hackers@lists.postgresql.org Subject: Re: random() function documentation In-reply-to: <875ynfpiru.fsf@wibble.ilmari.org> References: <875ynfpiru.fsf@wibble.ilmari.org> Comments: In-reply-to =?utf-8?Q?Dagfinn_Ilmari_Manns=C3=A5ker?= message dated "Mon, 11 Apr 2022 19:38:45 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <432789.1649702719.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Mon, 11 Apr 2022 14:45:19 -0400 Message-ID: <432790.1649702719@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk =?utf-8?Q?Dagfinn_Ilmari_Manns=C3=A5ker?= writes: > I just noticed that the since the random() rewrite¹, the documentation's > claim² that it "uses a simple linear congruential algorithm" is no > longer accurate (xoroshiro128** is an xorshift variant, which is a > linear-feedback shift register algorithm). > I don't have a suggestion for the exact wording, since I don't know > whether xoroshiro128** qualifies as "simple", or to what level of > specificity we want to document the algorithm. How about we just say "uses a linear-feedback shift register algorithm"? "Simple" is in the eye of the beholder anyway. regards, tom lane