- Notifications
You must be signed in to change notification settings - Fork28
Commit48e4b8d
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 parentb3aaf90 commit48e4b8d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
0 commit comments
Comments
(0)