--- ray/src/rt/normal.c 1992/01/16 12:05:29 2.9 +++ ray/src/rt/normal.c 1992/01/30 11:37:00 2.10 @@ -194,8 +194,7 @@ register RAY *r; /* check threshold */ if (specthresh > FTINY && ((specthresh >= 1.-FTINY || - specthresh + (.05 - .1*urand(8199+samplendx)) - > nd.rspec))) + specthresh + (.05 - .1*frandom()) > nd.rspec))) nd.specfl |= SP_RBLT; /* compute reflected ray */ for (i = 0; i < 3; i++) @@ -225,8 +224,7 @@ register RAY *r; if (specthresh > FTINY && ((specthresh >= 1.-FTINY || specthresh + - (.05 - .1*urand(7241+samplendx)) - > nd.tspec))) + (.05 - .1*frandom()) > nd.tspec))) nd.specfl |= SP_TBLT; if (r->crtype & SHADOW || DOT(r->pert,r->pert) <= FTINY*FTINY) {