提交 0f455b34 编写于 作者: T Tom Lane

Fix broken lrand48() implementation, per Merlin Moncure.

上级 e889ff4d
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册