Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd4f109e

Browse files
committed
Doc: update description of random() function.
Commit3804539 neglected to update the documentation's claim thatrandom() uses a "linear congruential algorithm". In hopes of avoidingthe same mistake if someone replaces our PRNG again, just say it's adeterministic pseudo-random number generator and leave it at that.Anybody who really wants to know can look in the source code.COMPATIBILITY NOTE FOR RELEASE NOTES:3804539's commit messagereally should have mentioned that the random() sequence aftersetseed(), while still repeatable, will differ from what you gotin pre-v15 releases.Noted by Dagfinn Ilmari Mannsåker; wording suggestion by Dean Rasheed.Discussion:https://postgr.es/m/875ynfpiru.fsf@wibble.ilmari.org
1 parente7cc4a6 commitd4f109e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎doc/src/sgml/func.sgml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1832,8 +1832,9 @@ repeat('Pg', 4) <returnvalue>PgPgPgPg</returnvalue>
18321832
</table>
18331833

18341834
<para>
1835-
The <function>random()</function> function uses a simple linear
1836-
congruential algorithm. It is fast but not suitable for cryptographic
1835+
The <function>random()</function> function uses a deterministic
1836+
pseudo-random number generator.
1837+
It is fast but not suitable for cryptographic
18371838
applications; see the <xref linkend="pgcrypto"/> module for a more
18381839
secure alternative.
18391840
If <function>setseed()</function> is called, the series of results of

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp