]>
Commit | Line | Data |
---|---|---|
1 | --- lrand48.c.orig 2003-05-20 15:21:02.000000000 -0700 | |
2 | +++ lrand48.c 2005-11-03 13:41:09.000000000 -0800 | |
3 | @@ -16,11 +16,9 @@ | |
4 | ||
5 | #include "rand48.h" | |
6 | ||
7 | -extern unsigned short _rand48_seed[3]; | |
8 | - | |
9 | long | |
10 | lrand48(void) | |
11 | { | |
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; | |
16 | } |