Re: patch contrib/pgcrypto for win32 (2)

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: patch contrib/pgcrypto for win32 (2)
Дата
Msg-id 41B35C1D.7010700@dunslane.net
обсуждение исходный текст
Ответ на patch contrib/pgcrypto for win32 (2)  ("Korea PostgreSQL Users' Group" <pgsql-kr@postgresql.or.kr>)
Список pgsql-patches

Korea PostgreSQL Users' Group wrote:

> I found that function gen_salt() in contrib/pgcrypto had bug on win32.
>
> I patched contrib/pgcrypto/random.c file.
>


What is the purpose of this addition?

+   srandom(time(NULL));
+


Is resetting the seed on each call a good idea?

cheers

andrew

В списке pgsql-patches по дате отправления:

Предыдущее
От: "Korea PostgreSQL Users' Group"
Дата:
Сообщение: patch contrib/pgcrypto for win32 (2)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: patch contrib/pgcrypto for win32 (2)