This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/3747] New: mrand48 and it's friends return values outside of [-2^31, 2^31] on 64-bit platforms


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]