]>
Commit | Line | Data |
---|---|---|
224c7076 A |
1 | --- jrand48.c.orig 2003-05-20 15:21:02.000000000 -0700 |
2 | +++ jrand48.c 2005-11-03 13:31:28.000000000 -0800 | |
3 | @@ -19,6 +19,7 @@ | |
4 | long | |
5 | jrand48(unsigned short xseed[3]) | |
6 | { | |
7 | - _dorand48(xseed); | |
8 | - return ((long) xseed[2] << 16) + (long) xseed[1]; | |
9 | + uint48 tmp; | |
10 | + DORAND48(tmp, xseed); | |
11 | + return (int)((tmp >> 16) & 0xffffffff); | |
12 | } |