]> git.saurik.com Git - apple/libc.git/blob - gen/FreeBSD/mrand48.c.patch
Libc-498.1.5.tar.gz
[apple/libc.git] / gen / FreeBSD / mrand48.c.patch
1 --- mrand48.c.orig 2003-05-20 15:21:02.000000000 -0700
2 +++ mrand48.c 2005-11-03 13:42:32.000000000 -0800
3 @@ -16,11 +16,9 @@
4
5 #include "rand48.h"
6
7 -extern unsigned short _rand48_seed[3];
8 -
9 long
10 mrand48(void)
11 {
12 - _dorand48(_rand48_seed);
13 - return ((long) _rand48_seed[2] << 16) + (long) _rand48_seed[1];
14 + _DORAND48(_rand48_seed);
15 + return (int)((_rand48_seed >> 16) & 0xffffffff);
16 }