--- ray/src/common/urand.c 1991/05/17 13:51:14 1.2 +++ ray/src/common/urand.c 1991/06/07 10:47:17 1.4 @@ -16,7 +16,6 @@ extern char *malloc(); short *urperm; /* urand() permutation */ int urmask; /* bits used in permutation */ -static int urorder; /* number of bits */ initurand(size) /* initialize urand() for size entries */ @@ -49,15 +48,15 @@ int size; int -urhash(d, n) /* hash a set of integer values */ +ilhash(d, n) /* hash a set of integer values */ register int *d; register int n; { static int tab[8] = {13623,353,1637,5831,2314,3887,5832,8737}; - register unsigned hval; + register int hval; hval = 0; while (n-- > 0) hval += *d++ * tab[n&7]; - return(hval & urmask); + return(hval); }