diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2022-07-23 19:00:30 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2022-07-23 19:00:30 -0400 |
commit | bd6cfbf338e5c3d65b9271f632142716d67d7c34 (patch) | |
tree | 579c22d54b2955563c0018f7d3dba0b1fc1dd786 /src/common/file_utils.c | |
parent | 44d0e41319f2379d610eec059da273ae4e3c4e6f (diff) | |
download | postgresql-bd6cfbf338e5c3d65b9271f632142716d67d7c34.tar.gz postgresql-bd6cfbf338e5c3d65b9271f632142716d67d7c34.zip |
Doc: improve documentation about random().
We didn't explicitly say that random() uses a randomly-chosen seed
if you haven't called setseed(). Do so.
Also, remove ref/set.sgml's no-longer-accurate (and never very
relevant) statement that the seed value is multiplied by 2^31-1.
Back-patch to v12 where set.sgml's claim stopped being true.
The claim that we use a source of random bits as seed was debatable
before 4203842a1, too, so v12 seems like a good place to stop.
Per question from Carl Sopchak.
Discussion: https://postgr.es/m/f37bb937-9d99-08f0-4de7-80c91a3cfc2e@sopchak.me
Diffstat (limited to 'src/common/file_utils.c')
0 files changed, 0 insertions, 0 deletions