1 --- seed48.c.orig 2003-05-20 15:21:02.000000000 -0700
2 +++ seed48.c 2005-11-03 13:48:11.000000000 -0800
7 -extern unsigned short _rand48_seed[3];
8 -extern unsigned short _rand48_mult[3];
9 -extern unsigned short _rand48_add;
12 seed48(unsigned short xseed[3])
14 static unsigned short sseed[3];
16 - sseed[0] = _rand48_seed[0];
17 - sseed[1] = _rand48_seed[1];
18 - sseed[2] = _rand48_seed[2];
19 - _rand48_seed[0] = xseed[0];
20 - _rand48_seed[1] = xseed[1];
21 - _rand48_seed[2] = xseed[2];
22 - _rand48_mult[0] = RAND48_MULT_0;
23 - _rand48_mult[1] = RAND48_MULT_1;
24 - _rand48_mult[2] = RAND48_MULT_2;
25 + STORERAND48(_rand48_seed, sseed);
26 + LOADRAND48(_rand48_seed, xseed);
27 + _rand48_mult = RAND48_MULT;
28 _rand48_add = RAND48_ADD;