--- ray/src/common/urand.c 2003/06/07 12:50:21 2.7 +++ ray/src/common/urand.c 2004/05/14 20:49:13 2.8 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: urand.c,v 2.7 2003/06/07 12:50:21 schorsch Exp $"; +static const char RCSid[] = "$Id: urand.c,v 2.8 2004/05/14 20:49:13 greg Exp $"; #endif /* * Anticorrelated random function due to Christophe Schlick @@ -33,26 +33,26 @@ int size; urmask = 0; return(0); } - for (i = 1; size >>= 1; i++) - ; - order = i>MAXORDER ? MAXORDER : i; - urmask = (1<>= 1); i++) + if (i == MAXORDER) + break; + order = i; + urmask = (1<