Re: random() function documentation

Поиск
Список
Период
Сортировка
От Dagfinn Ilmari Mannsåker
Тема Re: random() function documentation
Дата
Msg-id 8735ijphrp.fsf@wibble.ilmari.org
обсуждение исходный текст
Ответ на Re: random() function documentation  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: random() function documentation  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> writes:

> =?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"?

That works for me.  Nice and simple, and not overly specific.  Should we
perhaps also add a warning that the same seed is not guaranteed to
produce the same sequence across different (major?) versions?

> "Simple" is in the eye of the beholder anyway.

Indeed.

>             regards, tom lane

- ilmari



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Thom Brown
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Allow time delayed standbys and recovery
Следующее
От: Tom Lane
Дата:
Сообщение: Re: How about a psql backslash command to show GUCs?