ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/rvmain.c
(Generate patch)

Comparing ray/src/rt/rvmain.c (file contents):
Revision 2.5 by greg, Wed Jun 15 15:36:52 2005 UTC vs.
Revision 2.8 by greg, Tue Mar 11 02:21:47 2008 UTC

# Line 169 | Line 169 | main(int  argc, char  *argv[])
169                                          /* initialize object types */
170          initotypes();
171                                          /* initialize urand */
172 <        initurand(2048);
173 <        srandom(rand_samp ? (long)time(0) : 0L);
172 >        if (rand_samp) {
173 >                srandom((long)time(0));
174 >                initurand(0);
175 >        } else {
176 >                srandom(0L);
177 >                initurand(2048);
178 >        }
179                                          /* set up signal handling */
180          sigdie(SIGINT, "Interrupt");
181          sigdie(SIGHUP, "Hangup");
# Line 302 | Line 307 | printdefaults(void)                    /* print default values to stdou
307                          ourview.type==VT_HEM ? "hemispherical" :
308                          ourview.type==VT_ANG ? "angular" :
309                          ourview.type==VT_CYL ? "cylindrical" :
310 +                        ourview.type==VT_PLS ? "planisphere" :
311                          "unknown");
312          printf("-vp %f %f %f\t# view point\n",
313                          ourview.vp[0], ourview.vp[1], ourview.vp[2]);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines