Call srandom() instead of srand(). pgbench calls random() later, so it should have called srandom(). On most platforms except Windows srandom() is actually identical to srand(), so the bug only bites Windows users. per bug report from Akio Ishida.
Call srandom() instead of srand().
pgbench calls random() later, so it should have called srandom().
On most platforms except Windows srandom() is actually identical
to srand(), so the bug only bites Windows users.
per bug report from Akio Ishida.

snaga/postgres-xl,oberstet/postgres-xl,tpostgres-projects/tPostgres,Postgres-XL/Postgres-XL,edespino/gpdb,ahachete/gpdb,janebeckman/gpdb,zaksoup/gpdb,yuanzhao/gpdb,kaknikhil/gpdb,CraigHarris/gpdb,Postgres-XL/Postgres-XL,yazun/postgres-xl,rubikloud/gpdb,jmcatamney/gpdb,CraigHarris/gpdb,ovr/postgres-xl,lpetrov-pivotal/gpdb,chrishajas/gpdb,lintzc/gpdb,arcivanov/postgres-xl,ahachete/gpdb,ashwinstar/gpdb,rubikloud/gpdb,postmind-net/postgres-xl,cjcjameson/gpdb,Chibin/gpdb,lpetrov-pivotal/gpdb,yazun/postgres-xl,Quikling/gpdb,Chibin/gpdb,randomtask1155/gpdb,yuanzhao/gpdb,atris/gpdb,kaknikhil/gpdb,Postgres-XL/Postgres-XL,lpetrov-pivotal/gpdb,Chibin/gpdb,edespino/gpdb,cjcjameson/gpdb,Quikling/gpdb,CraigHarris/gpdb,rvs/gpdb,snaga/postgres-xl,kaknikhil/gpdb,ashwinstar/gpdb,yazun/postgres-xl,lisakowen/gpdb,oberstet/postgres-xl,ahachete/gpdb,zaksoup/gpdb,xuegang/gpdb,xinzweb/gpdb,cjcjameson/gpdb,rubikloud/gpdb,ahachete/gpdb,Chibin/gpdb,rvs/gpdb,atris/gpdb,edespino/gpdb,greenplum-db/gpdb,janebeckman/gpdb,Quikling/gpdb,postmind-net/postgres-xl,ovr/postgres-xl,ashwinstar/gpdb,adam8157/gpdb,ashwinstar/gpdb,Postgres-XL/Postgres-XL,lintzc/gpdb,chrishajas/gpdb,ahachete/gpdb,cjcjameson/gpdb,chrishajas/gpdb,rvs/gpdb,lisakowen/gpdb,tpostgres-projects/tPostgres,xuegang/gpdb,rvs/gpdb,rvs/gpdb,royc1/gpdb,xinzweb/gpdb,lisakowen/gpdb,pavanvd/postgres-xl,lpetrov-pivotal/gpdb,postmind-net/postgres-xl,lintzc/gpdb,kmjungersen/PostgresXL,jmcatamney/gpdb,50wu/gpdb,tangp3/gpdb,rubikloud/gpdb,kaknikhil/gpdb,lisakowen/gpdb,0x0FFF/gpdb,tpostgres-projects/tPostgres,foyzur/gpdb,ovr/postgres-xl,0x0FFF/gpdb,foyzur/gpdb,yuanzhao/gpdb,Chibin/gpdb,kaknikhil/gpdb,50wu/gpdb,kaknikhil/gpdb,rubikloud/gpdb,Chibin/gpdb,rubikloud/gpdb,arcivanov/postgres-xl,atris/gpdb,ashwinstar/gpdb,CraigHarris/gpdb,0x0FFF/gpdb,pavanvd/postgres-xl,lpetrov-pivotal/gpdb,rubikloud/gpdb,0x0FFF/gpdb,Quikling/gpdb,greenplum-db/gpdb,janebeckman/gpdb,greenplum-db/gpdb,xuegang/gpdb,tangp3/gpdb,50wu/gpdb,oberstet/postgres-xl,randomtask1155/gpdb,foyzur/gpdb,0x0FFF/gpdb,royc1/gpdb,tangp3/gpdb,xinzweb/gpdb,foyzur/gpdb,oberstet/postgres-xl,greenplum-db/gpdb,zeroae/postgres-xl,lintzc/gpdb,edespino/gpdb,xinzweb/gpdb,zeroae/postgres-xl,lpetrov-pivotal/gpdb,Quikling/gpdb,ahachete/gpdb,adam8157/gpdb,yuanzhao/gpdb,yuanzhao/gpdb,Quikling/gpdb,Chibin/gpdb,janebeckman/gpdb,edespino/gpdb,lisakowen/gpdb,yuanzhao/gpdb,janebeckman/gpdb,50wu/gpdb,cjcjameson/gpdb,Chibin/gpdb,yuanzhao/gpdb,cjcjameson/gpdb,Chibin/gpdb,Postgres-XL/Postgres-XL,pavanvd/postgres-xl,tangp3/gpdb,chrishajas/gpdb,yazun/postgres-xl,arcivanov/postgres-xl,yazun/postgres-xl,lisakowen/gpdb,greenplum-db/gpdb,xuegang/gpdb,chrishajas/gpdb,randomtask1155/gpdb,lintzc/gpdb,techdragon/Postgres-XL,50wu/gpdb,jmcatamney/gpdb,atris/gpdb,adam8157/gpdb,rvs/gpdb,postmind-net/postgres-xl,zeroae/postgres-xl,snaga/postgres-xl,xinzweb/gpdb,ovr/postgres-xl,Quikling/gpdb,xinzweb/gpdb,royc1/gpdb,cjcjameson/gpdb,xinzweb/gpdb,kmjungersen/PostgresXL,adam8157/gpdb,kmjungersen/PostgresXL,50wu/gpdb,techdragon/Postgres-XL,xuegang/gpdb,adam8157/gpdb,atris/gpdb,edespino/gpdb,foyzur/gpdb,randomtask1155/gpdb,janebeckman/gpdb,tangp3/gpdb,janebeckman/gpdb,edespino/gpdb,royc1/gpdb,techdragon/Postgres-XL,arcivanov/postgres-xl,greenplum-db/gpdb,atris/gpdb,CraigHarris/gpdb,kaknikhil/gpdb,Quikling/gpdb,edespino/gpdb,techdragon/Postgres-XL,jmcatamney/gpdb,tangp3/gpdb,zeroae/postgres-xl,Quikling/gpdb,zaksoup/gpdb,zeroae/postgres-xl,ovr/postgres-xl,yuanzhao/gpdb,janebeckman/gpdb,rubikloud/gpdb,lintzc/gpdb,chrishajas/gpdb,lintzc/gpdb,chrishajas/gpdb,ashwinstar/gpdb,kaknikhil/gpdb,jmcatamney/gpdb,rvs/gpdb,lintzc/gpdb,xuegang/gpdb,yuanzhao/gpdb,zaksoup/gpdb,arcivanov/postgres-xl,adam8157/gpdb,lisakowen/gpdb,tpostgres-projects/tPostgres,ahachete/gpdb,kmjungersen/PostgresXL,oberstet/postgres-xl,lintzc/gpdb,pavanvd/postgres-xl,foyzur/gpdb,tpostgres-projects/tPostgres,adam8157/gpdb,chrishajas/gpdb,cjcjameson/gpdb,adam8157/gpdb,Chibin/gpdb,jmcatamney/gpdb,janebeckman/gpdb,ashwinstar/gpdb,jmcatamney/gpdb,ashwinstar/gpdb,cjcjameson/gpdb,lpetrov-pivotal/gpdb,greenplum-db/gpdb,arcivanov/postgres-xl,CraigHarris/gpdb,50wu/gpdb,0x0FFF/gpdb,kmjungersen/PostgresXL,foyzur/gpdb,xuegang/gpdb,royc1/gpdb,lpetrov-pivotal/gpdb,janebeckman/gpdb,foyzur/gpdb,royc1/gpdb,pavanvd/postgres-xl,zaksoup/gpdb,kaknikhil/gpdb,50wu/gpdb,yuanzhao/gpdb,royc1/gpdb,randomtask1155/gpdb,cjcjameson/gpdb,rvs/gpdb,royc1/gpdb,greenplum-db/gpdb,randomtask1155/gpdb,randomtask1155/gpdb,CraigHarris/gpdb,ahachete/gpdb,0x0FFF/gpdb,tangp3/gpdb,snaga/postgres-xl,CraigHarris/gpdb,zaksoup/gpdb,atris/gpdb,jmcatamney/gpdb,xinzweb/gpdb,kaknikhil/gpdb,xuegang/gpdb,lisakowen/gpdb,postmind-net/postgres-xl,0x0FFF/gpdb,Quikling/gpdb,rvs/gpdb,zaksoup/gpdb,xuegang/gpdb,zaksoup/gpdb,tangp3/gpdb,edespino/gpdb,edespino/gpdb,rvs/gpdb,atris/gpdb,snaga/postgres-xl,randomtask1155/gpdb,CraigHarris/gpdb,techdragon/Postgres-XL