Re: rand48 replacement
Fabien COELHO <coelho@cri.ensmp.fr>
From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Dean Rasheed <dean.a.rasheed@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>
Cc: Aleksander Alekseev <aleksander@timescale.com>,
PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2021-07-03T07:06:06Z
Lists: pgsql-hackers
Attachments
- prng-4.patch (text/x-diff) patch
Hello Dean & Tom,
Here is a v4, which:
- moves the stuff to common and fully removes random/srandom (Tom)
- includes a range generation function based on the bitmask method (Dean)
but iterates with splitmix so that the state always advances once (Me)
--
Fabien.
Commits
-
Replace random(), pg_erand48(), etc with a better PRNG API and algorithm.
- 3804539e48e7 15.0 landed