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.58 by greg, Tue Apr 22 17:12:25 2025 UTC vs.
Revision 2.60 by greg, Fri Jun 20 03:43:17 2025 UTC

# Line 17 | Line 17 | static const char      RCSid[] = "$Id$";
17   #include  "source.h"
18   #include  "ambient.h"
19   #include  "random.h"
20 #include  "paths.h"
20   #include  "pmapray.h"
21  
22   extern char     *progname;              /* global argv[0] */
# Line 363 | Line 362 | main(int  argc, char  *argv[])
362                                          /* initialize object types */
363          initotypes();
364                                          /* initialize urand */
365 <        if (rand_samp) {
367 <                srandom((long)time(0));
368 <                initurand(0);
369 <        } else {
370 <                srandom(0L);
371 <                initurand(2048);
372 <        }
365 >        reset_random();
366                                          /* set up signal handling */
367          sigdie(SIGINT, "Interrupt");
368   #ifdef SIGHUP

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines