pgsql: Call srandom() instead of srand(). - Mailing list pgsql-committers

From [email protected] (Tatsuo Ishii)
Subject pgsql: Call srandom() instead of srand().
Date
Msg-id [email protected]
Whole thread Raw
List pgsql-committers
Log Message:
-----------
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.

Modified Files:
--------------
    pgsql/contrib/pgbench:
        pgbench.c (r1.58 -> r1.59)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/pgbench/pgbench.c.diff?r1=1.58&r2=1.59)

pgsql-committers by date:

Previous
From: [email protected] (User Okbob)
Date:
Subject: plpsm - plpgpsm: initial get diagnostics statement support
Next
From: [email protected] (Teodor Sigaev)
Date:
Subject: pgsql: Fix memory reallocation condition