Re: win32 random number generator

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)com>
Cc: pgsql-patches(at)postgresql(dot)org, pgsql-hackers-win32(at)postgresql(dot)org
Subject: Re: win32 random number generator
Date: 2005-08-23 13:26:16
Message-ID: 1700.1124803576@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers-win32 pgsql-patches

"Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)com> writes:
> "Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)com> 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 the casts. Will fix.

regards, tom lane

In response to

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Merlin Moncure 2005-08-23 18:47:55 profiling on win32
Previous Message Merlin Moncure 2005-08-23 12:14:21 Re: win32 random number generator

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2005-08-23 13:48:25 Re: Win32 unicode vs ICU
Previous Message Andrew Dunstan 2005-08-23 12:53:38 Re: PL/Perl embedding string common elements