Back port patch.
authorTatsuo Ishii <ishii@postgresql.org>
Sat, 13 Jan 2007 03:17:34 +0000 (03:17 +0000)
committerTatsuo Ishii <ishii@postgresql.org>
Sat, 13 Jan 2007 03:17:34 +0000 (03:17 +0000)
commitce39c7abe010f5d243a1fc2b8bf69a3b2a33200c
tree227b333f814d02ead7eed8f488427a2eb359dd6c
parent5ff2f9f9644f2ade0d6163d9b5eca5d20ffa1524
Back port patch.

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