# | 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 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |