# | Line 90 | Line 90 | static const char RCSid[] = "$Id$"; | |
---|---|---|
90 | */ | |
91 | ||
92 | #include <string.h> | |
93 | + | #include <time.h> |
94 | ||
95 | #include "ray.h" | |
96 | #include "source.h" | |
# | Line 165 | Line 166 | ray_init( /* initialize ray-tracing calculation */ | |
166 | initotypes(); | |
167 | /* initialize urand */ | |
168 | initurand(2048); | |
169 | + | srandom(rand_samp ? (long)time(0) : 0L); |
170 | /* read scene octree */ | |
171 | readoct(octname = otnm, ~(IO_FILES|IO_INFO), &thescene, NULL); | |
172 | nsceneobjs = nobjects; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |