Re: [pgsql-hackers-win32] win32 random number generator - Mailing list pgsql-patches

From Merlin Moncure
Subject Re: [pgsql-hackers-win32] win32 random number generator
Date
Msg-id 6EE64EF3AB31D5448D0007DD34EEB3417DD177@Herge.rcsinc.local
Whole thread Raw
Responses Re: [pgsql-hackers-win32] win32 random number generator  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
> "Merlin Moncure" <merlin.moncure@rcsonline.com> 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 removed
the spurious casts.

Merlin

Attachment

pgsql-patches by date:

Previous
From: Guillaume LELARGE
Date:
Subject: Updated french po files
Next
From: Andrew Dunstan
Date:
Subject: Re: PL/Perl embedding string common elements