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.61 by greg, Fri Jun 20 16:34:23 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"
22
23 extern char     *progname;              /* global argv[0] */
24
21                                          /* persistent processes define */
22   #ifdef  F_SETLKW
23   #define  PERSIST        1               /* normal persist */
# Line 363 | Line 359 | main(int  argc, char  *argv[])
359                                          /* initialize object types */
360          initotypes();
361                                          /* initialize urand */
362 <        if (rand_samp) {
367 <                srandom((long)time(0));
368 <                initurand(0);
369 <        } else {
370 <                srandom(0L);
371 <                initurand(2048);
372 <        }
362 >        reset_random();
363                                          /* set up signal handling */
364          sigdie(SIGINT, "Interrupt");
365   #ifdef SIGHUP

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines