- Notifications
You must be signed in to change notification settings - Fork4.9k
Commitf655a9f
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 parentcbd5154 commitf655a9f
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
71 | 71 |
| |
72 | 72 |
| |
73 | 73 |
| |
74 |
| - | |
| 74 | + | |
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
|
0 commit comments
Comments
(0)