patch contrib/pgcrypto for win32

From: "Korea PostgreSQL Users' Group" <pgsql-kr(at)postgresql(dot)or(dot)kr>
To: <pgsql-patches(at)postgresql(dot)org>
Subject: patch contrib/pgcrypto for win32
Date: 2004-12-05 15:05:02
Message-ID: 000a01c4dadb$cc0b92a0$cdcb56dc@paolo.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

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.

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Andrew Dunstan 2004-12-05 15:39:22 Re: patch contrib/pgcrypto for win32
Previous Message Mark Kirkwood 2004-12-05 08:01:42 Re: Docs - Plpgsql trigger example auditing changes into