]> git.saurik.com Git - apple/libc.git/blob - gen/FreeBSD/nrand48.c.patch
Libc-763.12.tar.gz
[apple/libc.git] / gen / FreeBSD / nrand48.c.patch
1 --- nrand48.c.orig 2009-11-07 14:51:38.000000000 -0800
2 +++ nrand48.c 2009-11-07 14:51:39.000000000 -0800
3 @@ -19,6 +19,7 @@ __FBSDID("$FreeBSD: src/lib/libc/gen/nra
4 long
5 nrand48(unsigned short xseed[3])
6 {
7 - _dorand48(xseed);
8 - return ((long) xseed[2] << 15) + ((long) xseed[1] >> 1);
9 + uint48 tmp;
10 + DORAND48(tmp, xseed);
11 + return (tmp >> 17) & 0x7fffffff;
12 }