# | Line 8 | Line 8 | static const char RCSid[] = "$Id$"; | |
---|---|---|
8 | #include "copyright.h" | |
9 | ||
10 | #include <signal.h> | |
11 | + | #include <time.h> |
12 | ||
13 | #include "platform.h" | |
14 | #include "ray.h" | |
# | Line 168 | Line 169 | main(int argc, char *argv[]) | |
169 | /* initialize object types */ | |
170 | initotypes(); | |
171 | /* initialize urand */ | |
172 | + | srandom(rand_samp ? (long)time(0) : 0L); |
173 | initurand(2048); | |
174 | /* set up signal handling */ | |
175 | sigdie(SIGINT, "Interrupt"); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |