]> granicus.if.org Git - postgresql/commit
Back port patch.
authorTatsuo Ishii <ishii@postgresql.org>
Sat, 13 Jan 2007 03:24:55 +0000 (03:24 +0000)
committerTatsuo Ishii <ishii@postgresql.org>
Sat, 13 Jan 2007 03:24:55 +0000 (03:24 +0000)
commitfe7b0fc35da752fead8c389a2a6cbb59f2aab92a
treedf0f3af2cc803a9ea127ea292d604f88b4008a26
parent2ece6917e8a434feeff03369ae2b4376c0212f49
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