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 1ndywB-00061m-Tu for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Apr 2022 18:38:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ndywA-0008MC-PG for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Apr 2022 18:38:54 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ndyw9-0008Li-4Q for pgsql-hackers@lists.postgresql.org; Mon, 11 Apr 2022 18:38:54 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ndyw6-0004Pr-7z for pgsql-hackers@lists.postgresql.org; Mon, 11 Apr 2022 18:38:52 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 6276432020C1 for ; Mon, 11 Apr 2022 14:38:48 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 11 Apr 2022 14:38:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ilmari.org; h=cc :content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm2; t=1649702328; x=1649788728; bh=hacjn6Ytpm hEL1OIkdQ5qBr1hdWxbJwmI79T0gP9kak=; b=1ul4J/Cd3xEhYJY975AGLDv7X2 xCqwmKeVwEgYzcYwVXIORKwIwQIIOmSWDuGNJ7HSkbyJChQTAS8Df1LBXigJpci4 4b9fagbBxOqHokIjpr6y+k9w/VfapqjWFb0nQAwJymK7li3OIEED/XqbF1A07dJu dH0Zcng+GwiMQolxuL4Q6iDnuQSQjRg0rnZU2fg1hciLbfuk/nhUOH9A8pu5Ydm2 Bcgmjy8avvchpsRhrukM/553jIkrfZGxIJdEfSKEypfBt2+0LziYDT9BtgH4wbeB zC5C/pKabeUnGjtjnNpGLK0NHFi0QL3zc4nYNvbQxKB+aI9Y3FUHjD1d76wg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:from:from:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1649702328; x= 1649788728; bh=hacjn6YtpmhEL1OIkdQ5qBr1hdWxbJwmI79T0gP9kak=; b=I Zgcdvt8VmJciUhwmyg1GrZzJ6BscfQhULUa1L/DZBVgreIXP/NWXM1VIN2qjRqwB gcY5OUtJ1WVUVyqejE8VgxP3OCtyXQklwMp4sMgh79dW68Ip+lCIb49kN8z9x0IJ 0uUGrcNTu0yh93wjwNtd2NQCODj0u70QKgN71Iq8xJ4Wkn8bZJPnugdIO3CaEtKK 60pgJd4JBJWFxqnJoYxS6pODXw80CcOg1PUlxnUBQrlhTsS/lsT6NhKUlTrOfQY6 OjS2ZgD7udWRjT0WfF2ku3F9z0LdoAnyPNFPZ8ESpPeJedCOboksuEjZ8+V1GfSl YYGDLhuZaY+4b1Oli2pcw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudekiedguddvlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfgfgggtgfesthekre dttderjeenucfhrhhomhepffgrghhfihhnnhgpkfhlmhgrrhhipgforghnnhhsnohkvghr uceoihhlmhgrrhhisehilhhmrghrihdrohhrgheqnecuggftrfgrthhtvghrnhepudeuje eitddvleekjeeigeffvdehteffjeffjefftdeuheduvddtieevgeegueetnecuffhomhgr ihhnpehpohhsthhgrhgvshhqlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehilhhmrghrihesihhlmhgrrhhirdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Mon, 11 Apr 2022 14:38:47 -0400 (EDT) From: =?utf-8?Q?Dagfinn_Ilmari_Manns=C3=A5ker?= To: pgsql-hackers@lists.postgresql.org Subject: random() function documentation Date: Mon, 11 Apr 2022 19:38:45 +0100 Message-ID: <875ynfpiru.fsf@wibble.ilmari.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Hackers, 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. - ilmari [1] https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=3804539e48e794781c6145c7f988f5d507418fa8 [2] https://www.postgresql.org/docs/devel/functions-math.html#FUNCTIONS-MATH-RANDOM-TABLE