Re: patch contrib/pgcrypto for win32 (2)

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: "Korea PostgreSQL Users' Group" <pgsql-kr(at)postgresql(dot)or(dot)kr>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: patch contrib/pgcrypto for win32 (2)
Date: 2004-12-05 19:06:05
Message-ID: 41B35C1D.7010700@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2004-12-05 19:14:20 Re: [PATCHES] Charset WIN1252
Previous Message David Kamholz 2004-12-05 18:49:47 plperl: enable UTF-8 support