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

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

  1. Replace random(), pg_erand48(), etc with a better PRNG API and algorithm.