Skip site navigation (1) Skip section navigation (2)

Re: patch contrib/pgcrypto for win32 (2) - bug report

From: "Korea PostgreSQL Users' Group" <pgsql-kr(at)postgresql(dot)or(dot)kr>
To: <pgsql-patches(at)postgresql(dot)org>
Subject: Re: patch contrib/pgcrypto for win32 (2) - bug report
Date: 2004-12-06 16:18:41
Message-ID: 001a01c4dbaf$40862770$cdcb56dc@paolo.net (view raw or flat)
Thread:
Lists: pgsql-patches
this bug is only for win32 system.

On mingw32 random() function have to be initialized by srandom().
so, I put srandom(time(NULL)) line.
and,
Because random() function return integer (2byte), this return integer number need filtering.
so, I changed random() % 255 line.

on win32, original code gen_salt() function allways returned "$1$/2E./2E.".
this string made by same return value by random() function. (sorry, I can't express in good English)

plz, check and properly fix this bug.

I tried "& 255" operation. but this bug is still.

In response to

Responses

pgsql-patches by date

Next:From: Tom LaneDate: 2004-12-06 16:32:25
Subject: Re: patch contrib/pgcrypto for win32 (2) - bug report
Previous:From: Tom LaneDate: 2004-12-06 15:13:39
Subject: Re: Preliminary patch for on-the-fly relpages/reltuples estimation

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group