Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

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

Поиск
Список
Период
Сортировка
От ishii@postgresql.org (Tatsuo Ishii)
Тема pgsql: Call srandom() instead of srand().
Дата
Msg-id 20061226010205.52E7C9F9F47@postgresql.org
обсуждение исходный текст
Список 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 по дате отправления: