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.6 by greg, Tue Jun 21 00:26:44 2005 UTC vs.
Revision 2.7 by greg, Wed Apr 5 06:22:57 2006 UTC

# Line 169 | Line 169 | main(int  argc, char  *argv[])
169                                          /* initialize object types */
170          initotypes();
171                                          /* initialize urand */
172 <        srandom(rand_samp ? (long)time(0) : 0L);
173 <        initurand(2048);
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");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines