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

From Andrew Dunstan
Subject Re: patch contrib/pgcrypto for win32
Date
Msg-id 1213.24.211.141.25.1102261162.squirrel@www.dunslane.net
Whole thread Raw
In response to patch contrib/pgcrypto for win32  ("Korea PostgreSQL Users' Group" <pgsql-kr@postgresql.or.kr>)
List pgsql-patches
Korea PostgreSQL Users Group said:
> I found that function gen_salt() in contrib/pgcrypto had bug on win32.
>
> I patched contrib/pgcrypto/random.c file.
>
> --------------
>
> $ diff random.orig.c random.c
> 42a43
>> #include <time.h>
> 87a89,90
>>       srandom(time(NULL));
>>
> 89c92
> <               *dst++ = random();
> ---
>>               dst[i] = (random() % 255);
>
>
> plz, check and apply.


Please remember to send context diffs, not plain diffs, as patches.

cheers

andrew




pgsql-patches by date:

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