Re: [PATCHES] [pgsql-hackers-win32] win32 random number generator

2005-08-23 Thread Tom Lane
"Merlin Moncure" <[EMAIL PROTECTED]> writes: > "Merlin Moncure" <[EMAIL PROTECTED]> writes: >> Looks like this in lrand48(void): >> _rand48_seed[1] > 1); >> _rand48_seed[1] >> 1); >> ^^ > The problem is the shift operator :). Ah, missed that completely in looking at t

Re: [PATCHES] [pgsql-hackers-win32] win32 random number generator

2005-08-23 Thread Merlin Moncure
> "Merlin Moncure" <[EMAIL PROTECTED]> writes: > > Looks like this in lrand48(void): _rand48_seed[1] > 1); > > _rand48_seed[1] >> 1); ^^ The problem is the shift operator :). Anyways I double checked the results and it works as expected now so here's a patch. I also rem