Re: random() function documentation - Mailing list pgsql-hackers

From Tom Lane
Subject Re: random() function documentation
Date
Msg-id 432790.1649702719@sss.pgh.pa.us
Whole thread Raw
In response to random() function documentation  (Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>)
Responses Re: random() function documentation  (Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>)
List pgsql-hackers
=?utf-8?Q?Dagfinn_Ilmari_Manns=C3=A5ker?= <ilmari@ilmari.org> writes:
> 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.

How about we just say "uses a linear-feedback shift register algorithm"?
"Simple" is in the eye of the beholder anyway.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: PostgreSQL Program Application
Next
From: Thom Brown
Date:
Subject: Re: [COMMITTERS] pgsql: Allow time delayed standbys and recovery