Fix pgbench's getrand() function so that min and max have approximately
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 10 Mar 2008 01:23:04 +0000 (01:23 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 10 Mar 2008 01:23:04 +0000 (01:23 +0000)
commit74d06eb7720be2dccf4aa38be1823fff8ff486ba
tree815931526fd47994d4b4acc6fa903f1053980b0b
parenta7caee9f79b13c034f6aadf25b874767cae1c221
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.
contrib/pgbench/pgbench.c