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

Comparing ray/src/rt/rtmain.c (file contents):
Revision 2.13 by greg, Sun Feb 5 22:22:20 2006 UTC vs.
Revision 2.14 by greg, Wed Apr 5 06:22:57 2006 UTC

# Line 227 | Line 227 | main(int  argc, char  *argv[])
227                                          /* initialize object types */
228          initotypes();
229                                          /* initialize urand */
230 <        initurand(2048);
231 <        srandom(rand_samp ? (long)time(0) : 0L);
230 >        if (rand_samp) {
231 >                srandom((long)time(0));
232 >                initurand(0);
233 >        } else {
234 >                srandom(0L);
235 >                initurand(2048);
236 >        }
237                                          /* set up signal handling */
238          sigdie(SIGINT, "Interrupt");
239   #ifdef SIGHUP

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines