Call srandom() instead of srand().
authorTatsuo Ishii <ishii@postgresql.org>
Tue, 26 Dec 2006 01:02:05 +0000 (01:02 +0000)
committerTatsuo Ishii <ishii@postgresql.org>
Tue, 26 Dec 2006 01:02:05 +0000 (01:02 +0000)
commit265262dfdf2862c876e0dd35140fdf8e8c7a4cf0
treee449f4eed5135019f0671066462989d85e6e7549
parentfd3cadd683325bbb40010fa7c874be87a06c1e6f
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.
contrib/pgbench/pgbench.c