forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4c9e516
committed
Doc: improve documentation about random().
We didn't explicitly say that random() uses a randomly-chosen seedif you haven't called setseed(). Do so.Also, remove ref/set.sgml's no-longer-accurate (and never veryrelevant) 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 debatablebefore4203842, 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.me1 parent43fe513 commit4c9e516
2 files changed
+4
-2
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1889 | 1889 |
| |
1890 | 1890 |
| |
1891 | 1891 |
| |
| 1892 | + | |
| 1893 | + | |
| 1894 | + | |
1892 | 1895 |
| |
1893 | 1896 |
| |
1894 | 1897 |
| |
|
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
175 | 175 |
| |
176 | 176 |
| |
177 | 177 |
| |
178 |
| - | |
179 |
| - | |
| 178 | + | |
180 | 179 |
| |
181 | 180 |
| |
182 | 181 |
| |
|
0 commit comments
Comments
(0)