This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/3747] New: mrand48 and it's friends return values outside of [-2^31, 2^31] on 64-bit platforms
- From: "nmiell at comcast dot net" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 18 Dec 2006 00:57:05 -0000
- Subject: [Bug libc/3747] New: mrand48 and it's friends return values outside of [-2^31, 2^31] on 64-bit platforms
- Reply-to: sourceware-bugzilla at sourceware dot org
A simple test program which aborts immediately:
#include <stdlib.h>
#include <limits.h>
int main(void)
{
while(1) {
long x = mrand48();
if (x > 2147483648 || x < -2147483648)
abort();
}
}
--
Summary: mrand48 and it's friends return values outside of [-
2^31, 2^31] on 64-bit platforms
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: nmiell at comcast dot net
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=3747
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.