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 1mUN8J-00026I-6s for pgsql-hackers@arkaria.postgresql.org; Sun, 26 Sep 2021 05:55:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mUN8I-0005Z3-5l for pgsql-hackers@arkaria.postgresql.org; Sun, 26 Sep 2021 05:55:26 +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 1mUN8H-0005Yv-UU for pgsql-hackers@lists.postgresql.org; Sun, 26 Sep 2021 05:55:25 +0000 Received: from sfr-1.cri.mines-paristech.fr ([77.158.180.225] helo=smtp.cri.ensmp.fr) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mUN8G-0004kF-CN for pgsql-hackers@lists.postgresql.org; Sun, 26 Sep 2021 05:55:25 +0000 Received: from pseudo (185.141.6.84.rev.sfr.net [84.6.141.185]) by smtp.cri.ensmp.fr (Postfix) with ESMTPSA id BE4BFC0049; Sun, 26 Sep 2021 07:57:48 +0200 (CEST) Date: Sun, 26 Sep 2021 07:55:22 +0200 (CEST) From: Fabien COELHO X-X-Sender: fabien@pseudo Reply-To: Fabien COELHO To: Tom Lane cc: Aleksander Alekseev , PostgreSQL Developers Subject: Re: rand48 replacement In-Reply-To: Message-ID: References: <3136e2672d5ab395521bae05a80df469@postgrespro.ru> <3b12e2dea4c3c33665c33b40c95349ef@postgrespro.ru> <8904daa4a916b4990b11d7140e0ff81f@postgrespro.ru> <2520097.1632590602@sss.pgh.pa.us> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk >> Just FTR, I strongly object to your removal of process-startup srandom() >> calls. > > Ok. The point of the patch is to replace and unify the postgres underlying > PRNG, so there was some logic behind this removal. FTR, this was triggered by your comment on Jul 1: >> [...] I see that you probably did that because random.c and srandom.c >> depend on it, but I wonder why we don't make an effort to flush those >> altogether. It's surely pretty confusing to newbies that what appears >> to be a call of the libc primitives is no such thing. I understood "flushing s?random.c" as that it would be a good thing to remove their definitions, hence their calls, whereas in the initial patch I provided a replacement for srandom & random. -- Fabien.