- Notifications
You must be signed in to change notification settings - Fork5
Commit39def59
committed
Call srandom() instead of srand().
pgbench calls random() later, so it should have called srandom().On most platforms except Windows srandom() is actually identicalto srand(), so the bug only bites Windows users.per bug report from Akio Ishida.1 parent506a989 commit39def59
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
1500 | 1500 |
| |
1501 | 1501 |
| |
1502 | 1502 |
| |
1503 |
| - | |
| 1503 | + | |
1504 | 1504 |
| |
1505 | 1505 |
| |
1506 | 1506 |
| |
|
0 commit comments
Comments
(0)