forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbd6cfbf
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 parent44d0e41 commitbd6cfbf
2 files changed
+4
-2
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1841 | 1841 |
| |
1842 | 1842 |
| |
1843 | 1843 |
| |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
1844 | 1847 |
| |
1845 | 1848 |
| |
1846 | 1849 |
| |
|
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
177 | 177 |
| |
178 | 178 |
| |
179 | 179 |
| |
180 |
| - | |
181 |
| - | |
| 180 | + | |
182 | 181 |
| |
183 | 182 |
| |
184 | 183 |
| |
|
0 commit comments
Comments
(0)