mirror of
https://github.com/postgres/postgres.git
synced 2025-06-11 20:28:21 +03:00
Fix broken lrand48() implementation, per Merlin Moncure.
This commit is contained in:
@ -63,7 +63,7 @@ long
|
||||
lrand48(void)
|
||||
{
|
||||
_dorand48(_rand48_seed);
|
||||
return ((long) _rand48_seed[2] << 15) + ((long) _rand48_seed[1] > 1);
|
||||
return ((long) _rand48_seed[2] << 15) + ((long) _rand48_seed[1] >> 1);
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user