]> granicus.if.org Git - postgresql/commit
Back port patch.
authorTatsuo Ishii <ishii@postgresql.org>
Sat, 13 Jan 2007 03:31:12 +0000 (03:31 +0000)
committerTatsuo Ishii <ishii@postgresql.org>
Sat, 13 Jan 2007 03:31:12 +0000 (03:31 +0000)
commit43021ef8156d76e87fcec3d597c7f7b2e06d21a7
treeaad5b5b31442da826749a94dcbc31818b6b24ee8
parent4c884c3ceb9da30e02e53f8bf2d427e5b82741fe
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