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.57 by greg, Wed Mar 5 18:56:28 2025 UTC vs.
Revision 2.60 by greg, Fri Jun 20 03:43:17 2025 UTC

# Line 13 | Line 13 | static const char      RCSid[] = "$Id$";
13   #include  "rtprocess.h" /* getpid() */
14   #include  "resolu.h"
15   #include  "ray.h"
16 + #include  "func.h"
17   #include  "source.h"
18   #include  "ambient.h"
19   #include  "random.h"
19 #include  "paths.h"
20   #include  "pmapray.h"
21  
22   extern char     *progname;              /* global argv[0] */
# Line 114 | Line 114 | main(int  argc, char  *argv[])
114          strcat(RFeatureList, RTRACE_FEATURES);
115          if (argc > 1 && !strcmp(argv[1], "-features"))
116                  return feature_status(argc-2, argv+2);
117 +                                        /* initialize calcomp routines */
118 +        initfunc();
119                                          /* add trace notify function */
120          for (i = 0; addobjnotify[i] != NULL; i++)
121                  ;
# Line 360 | Line 362 | main(int  argc, char  *argv[])
362                                          /* initialize object types */
363          initotypes();
364                                          /* initialize urand */
365 <        if (rand_samp) {
364 <                srandom((long)time(0));
365 <                initurand(0);
366 <        } else {
367 <                srandom(0L);
368 <                initurand(2048);
369 <        }
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