]> granicus.if.org Git - postgresql/commit
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)
commit8147c13f6fc04f9c929d03cbb5402f1977a07458
tree9e3f6951b0d923061b7a4198f42a0cc66f98ae79
parenta7542c3bb1d0fc59856c8152735722afb8c9a1c2
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