OSDN Git Service

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)
commit9537739f7fcd3bafa2471b199297ec7ad7c935e7
tree4282364b9527cdbb56bd16d68e21696ae71615da
parentd9384a4b7334ba755db88160fb96cd33725bd6d3
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