Skip site navigation (1) Skip section navigation (2)

pgsql: Call srandom() instead of srand().

From: ishii(at)postgresql(dot)org (Tatsuo Ishii)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Call srandom() instead of srand().
Date: 2006-12-26 01:02:05
Message-ID: 20061226010205.52E7C9F9F47@postgresql.org (view raw or flat)
Thread:
Lists: 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

Next:From: Teodor SigaevDate: 2006-12-26 14:54:24
Subject: pgsql: Fix memory reallocation condition
Previous:From: User OkbobDate: 2006-12-25 15:14:55
Subject: plpsm - plpgpsm: initial get diagnostics statement support

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group