pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Aleksander Alekseev <aleksander@timescale.com>
Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Subject: Re: rand48 replacement
Date: Sun, 26 Sep 2021 07:55:22 +0200 (CEST)
Message-ID: <alpine.DEB.2.22.394.2109260742571.3216312@pseudo> (raw)
In-Reply-To: <alpine.DEB.2.22.394.2109251929180.3216312@pseudo>
References: <alpine.DEB.2.22.394.2105241211230.165418@pseudo>
	<CAEZATCXcmccPQismOioD5kr2NMyMoeLpDaesizzoKh8M-BK5Dw@mail.gmail.com>
	<alpine.DEB.2.22.394.2107041718570.2359988@pseudo>
	<CAEZATCWnrVACs2FM219dSkh1ivic8KiGkPEVPtu-MO3nCOYm7A@mail.gmail.com>
	<alpine.DEB.2.22.394.2107042204240.2359988@pseudo>
	<3136e2672d5ab395521bae05a80df469@postgrespro.ru>
	<alpine.DEB.2.22.394.2107060805140.3858351@pseudo>
	<3b12e2dea4c3c33665c33b40c95349ef@postgrespro.ru>
	<alpine.DEB.2.22.394.2107060956180.3858351@pseudo>
	<8904daa4a916b4990b11d7140e0ff81f@postgrespro.ru>
	<alpine.DEB.2.22.394.2107072036140.4160419@pseudo>
	<CAJ7c6TOjfmtyBFZUzGLTSvSGydxUTjY67kn-FFrSUBgEpy7zrw@mail.gmail.com>
	<alpine.DEB.2.22.394.2109250938560.3216312@pseudo>
	<alpine.DEB.2.22.394.2109251643350.3216312@pseudo>
	<alpine.DEB.2.22.394.2109251824550.3216312@pseudo>
	<alpine.DEB.2.22.394.2109251901340.3216312! @pseudo>
	<2520097.1632590602@sss.pgh.pa.us>
	<alpine.DEB.2.22.394.2109251929180.3216312@pseudo>


>> 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.





view thread (59+ messages)  latest in thread

Message-ID: <alpine.DEB.2.22.394.2109260742571.3216312@pseudo>
Permalink:  ../alpine.DEB.2.22.394.2109260742571.3216312@pseudo/
Also on:    postgresql.org/message-id/alpine.DEB.2.22.394.2109260742571.3216312@pseudo

 · 

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-hackers@postgresql.org
  Cc: coelho@cri.ensmp.fr, tgl@sss.pgh.pa.us, aleksander@timescale.com
  Subject: Re: rand48 replacement
  In-Reply-To: <alpine.DEB.2.22.394.2109260742571.3216312@pseudo>
  References: <alpine.DEB.2.22.394.2105241211230.165418@pseudo> <CAEZATCXcmccPQismOioD5kr2NMyMoeLpDaesizzoKh8M-BK5Dw@mail.gmail.com> <alpine.DEB.2.22.394.2107041718570.2359988@pseudo> <CAEZATCWnrVACs2FM219dSkh1ivic8KiGkPEVPtu-MO3nCOYm7A@mail.gmail.com> <alpine.DEB.2.22.394.2107042204240.2359988@pseudo> <3136e2672d5ab395521bae05a80df469@postgrespro.ru> <alpine.DEB.2.22.394.2107060805140.3858351@pseudo> <3b12e2dea4c3c33665c33b40c95349ef@postgrespro.ru> <alpine.DEB.2.22.394.2107060956180.3858351@pseudo> <8904daa4a916b4990b11d7140e0ff81f@postgrespro.ru> <alpine.DEB.2.22.394.2107072036140.4160419@pseudo> <CAJ7c6TOjfmtyBFZUzGLTSvSGydxUTjY67kn-FFrSUBgEpy7zrw@mail.gmail.com> <alpine.DEB.2.22.394.2109250938560.3216312@pseudo> <alpine.DEB.2.22.394.2109251643350.3216312@pseudo> <alpine.DEB.2.22.394.2109251824550.3216312@pseudo> <2520097.1632590602@sss.pgh.pa.us> <alpine.DEB.2.22.394.2109251929180.3216312@pseudo> <alpine.DEB.2.22.394.2109260742571.3216312@pseudo>

* 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