--- ray/src/rt/rvmain.c 2005/06/15 15:36:52 2.5 +++ ray/src/rt/rvmain.c 2008/03/11 02:21:47 2.8 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: rvmain.c,v 2.5 2005/06/15 15:36:52 greg Exp $"; +static const char RCSid[] = "$Id: rvmain.c,v 2.8 2008/03/11 02:21:47 greg Exp $"; #endif /* * rvmain.c - main for rview interactive viewer @@ -169,8 +169,13 @@ main(int argc, char *argv[]) /* initialize object types */ initotypes(); /* initialize urand */ - initurand(2048); - srandom(rand_samp ? (long)time(0) : 0L); + if (rand_samp) { + srandom((long)time(0)); + initurand(0); + } else { + srandom(0L); + initurand(2048); + } /* set up signal handling */ sigdie(SIGINT, "Interrupt"); sigdie(SIGHUP, "Hangup"); @@ -302,6 +307,7 @@ printdefaults(void) /* print default values to stdou ourview.type==VT_HEM ? "hemispherical" : ourview.type==VT_ANG ? "angular" : ourview.type==VT_CYL ? "cylindrical" : + ourview.type==VT_PLS ? "planisphere" : "unknown"); printf("-vp %f %f %f\t# view point\n", ourview.vp[0], ourview.vp[1], ourview.vp[2]);