forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0962182
committed
Fix typo in pg_srand48 (srand48 in older branches).
">" should be ">>". This typo results in failure to use all of the bitsof the provided seed.This might rise to the level of a security bug if we were relying onsrand48 for any security-critical purposes, but we are not --- in fact,it's not used at all unless the platform lacks srandom(), which isimprobable. Even on such a platform the exposure seems minimal.Reported privately by Andres Freund.1 parent2cda30e commit0962182
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
92 | 92 |
| |
93 | 93 |
| |
94 | 94 |
| |
95 |
| - | |
| 95 | + | |
96 | 96 |
| |
97 | 97 |
| |
98 | 98 |
| |
|
0 commit comments
Comments
(0)