patch contrib/pgcrypto for win32
От
Korea PostgreSQL Users' Group
Тема
patch contrib/pgcrypto for win32
Дата
Msg-id
000a01c4dadb$cc0b92a0$cdcb56dc@paolo.net
Список
Дерево обсуждения
patch contrib/pgcrypto for win32 "Korea PostgreSQL Users' Group" <pgsql-kr@postgresql.or.kr>
Re: patch contrib/pgcrypto for win32 "Andrew Dunstan" <andrew@dunslane.net>
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);
42a43
> #include <time.h>
87a89,90
> srandom(time(NULL));
>
89c92
< *dst++ = random();
---
> dst[i] = (random() % 255);
plz, check and apply.
В списке pgsql-patches по дате отправления
От: Mark Kirkwood
Дата: