1 --- _rand48.c.orig 2003-05-20 15:21:01.000000000 -0700
2 +++ _rand48.c 2005-11-03 13:52:27.000000000 -0800
7 -unsigned short _rand48_seed[3] = {
12 -unsigned short _rand48_mult[3] = {
17 -unsigned short _rand48_add = RAND48_ADD;
20 -_dorand48(unsigned short xseed[3])
23 - unsigned short temp[2];
25 - accu = (unsigned long) _rand48_mult[0] * (unsigned long) xseed[0] +
26 - (unsigned long) _rand48_add;
27 - temp[0] = (unsigned short) accu; /* lower 16 bits */
28 - accu >>= sizeof(unsigned short) * 8;
29 - accu += (unsigned long) _rand48_mult[0] * (unsigned long) xseed[1] +
30 - (unsigned long) _rand48_mult[1] * (unsigned long) xseed[0];
31 - temp[1] = (unsigned short) accu; /* middle 16 bits */
32 - accu >>= sizeof(unsigned short) * 8;
33 - accu += _rand48_mult[0] * xseed[2] + _rand48_mult[1] * xseed[1] + _rand48_mult[2] * xseed[0];
36 - xseed[2] = (unsigned short) accu;
38 +uint48 _rand48_seed = RAND48_SEED;
39 +uint48 _rand48_mult = RAND48_MULT;
40 +uint48 _rand48_add = RAND48_ADD;