Fix pgbench's getrand() function so that min and max have approximately
Tom Lane <tgl@sss.pgh.pa.us>
Fix pgbench's getrand() function so that min and max have approximately the same chance of being selected as do numbers between them. Problem noted by Greg Stark; fix by Alexey Klyukin.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pgbench/pgbench.c | modified | +7 −3 |