]> granicus.if.org Git - postgresql/commit
Back port patch.
authorTatsuo Ishii <ishii@postgresql.org>
Wed, 10 Jan 2007 01:44:30 +0000 (01:44 +0000)
committerTatsuo Ishii <ishii@postgresql.org>
Wed, 10 Jan 2007 01:44:30 +0000 (01:44 +0000)
commite6be37ffe2ca736378c9c4608ee8f8b2e11189b9
tree6e818f9301a10d7a939eff8089844f5a81527ae9
parentc3013376b25bf9423c6783b74e813aa47b99b39e
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