--- ray/src/common/urand.c 2006/04/05 06:22:56 2.10 +++ ray/src/common/urand.c 2015/05/27 08:42:06 2.11 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: urand.c,v 2.10 2006/04/05 06:22:56 greg Exp $"; +static const char RCSid[] = "$Id: urand.c,v 2.11 2015/05/27 08:42:06 greg Exp $"; #endif /* * Anticorrelated random function due to Christophe Schlick @@ -7,8 +7,6 @@ static const char RCSid[] = "$Id: urand.c,v 2.10 2006/ #include "copyright.h" -#include - #include "standard.h" #include "random.h" @@ -21,12 +19,14 @@ static unsigned short empty_tab = 0; unsigned short *urperm = &empty_tab; /* urand() permutation */ int urmask = 0; /* bits used in permutation */ + int -initurand(size) /* initialize urand() for size entries */ -int size; +initurand( /* initialize urand() for size entries */ + int size +) { int order, n; - register int i, offset; + int i, offset; if ((urperm != NULL) & (urperm != &empty_tab)) free((void *)urperm); @@ -60,12 +60,13 @@ int size; int -ilhash(d, n) /* hash a set of integer values */ -register int *d; -register int n; +ilhash( /* hash a set of integer values */ + int *d, + int n +) { static int tab[8] = {103699,96289,73771,65203,81119,87037,92051,98899}; - register int hval; + int hval; hval = 0; while (n-- > 0)