- Notifications
You must be signed in to change notification settings - Fork28
Commit5b0ce3e
committed
Increase the number of possible random seeds per time period.
Commit197e4af refactored the initialization of the libc random()seed, but reduced the number of possible seeds values that could bechosen in a given time period. This negation of the effects ofcommit98c5065 was unintentional. Replace with code thatshifts the fast moving timestamp bits left, similar to the originalalgorithm (though not the previous float-tolerating coding, whichis no longer necessary).Author: Thomas MunroReported-by: Noah MischReviewed-by: Tom LaneDiscussion:https://postgr.es/m/20181112083358.GA1073796%40rfd.leadboat.com1 parentaa55183 commit5b0ce3e
1 file changed
+10
-2
lines changedLines changed: 10 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2525 | 2525 |
| |
2526 | 2526 |
| |
2527 | 2527 |
| |
2528 |
| - | |
2529 |
| - | |
| 2528 | + | |
| 2529 | + | |
| 2530 | + | |
| 2531 | + | |
| 2532 | + | |
| 2533 | + | |
| 2534 | + | |
| 2535 | + | |
| 2536 | + | |
| 2537 | + | |
2530 | 2538 |
| |
2531 | 2539 |
| |
2532 | 2540 |
| |
|
0 commit comments
Comments
(0)