Re: patch contrib/pgcrypto for win32 (2) - Mailing list pgsql-patches

From Andrew Dunstan
Subject Re: patch contrib/pgcrypto for win32 (2)
Date
Msg-id 41B35C1D.7010700@dunslane.net
Whole thread Raw
In response to patch contrib/pgcrypto for win32 (2)  ("Korea PostgreSQL Users' Group" <pgsql-kr@postgresql.or.kr>)
List 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 by date:

Previous
From: "Korea PostgreSQL Users' Group"
Date:
Subject: patch contrib/pgcrypto for win32 (2)
Next
From: Tom Lane
Date:
Subject: Re: patch contrib/pgcrypto for win32 (2)