Fix pgbench's getrand() function so that min and max have approximately

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 9537739f7fcd3bafa2471b199297ec7ad7c935e7
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2008-03-10T01:23:04Z
Releases: 8.4.0
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

PathChange+/−
contrib/pgbench/pgbench.c modified +7 −3