Back port patch.

Tatsuo Ishii <ishii@postgresql.org>

Commit: 43021ef8156d76e87fcec3d597c7f7b2e06d21a7
Author: Tatsuo Ishii <ishii@postgresql.org>
Date: 2007-01-13T03:31:12Z
Releases: 7.3.18
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.

Files

PathChange+/−
contrib/pgbench/pgbench.c modified +3 −3