1 --- lrand48.c.orig 2009-11-07 14:51:38.000000000 -0800
2 +++ lrand48.c 2009-11-07 14:51:39.000000000 -0800
3 @@ -16,11 +16,9 @@ __FBSDID("$FreeBSD: src/lib/libc/gen/lra
7 -extern unsigned short _rand48_seed[3];
12 - _dorand48(_rand48_seed);
13 - return ((long) _rand48_seed[2] << 15) + ((long) _rand48_seed[1] >> 1);
14 + _DORAND48(_rand48_seed);
15 + return (_rand48_seed >> 17) & 0x7fffffff;