| 7 |
|
|
| 8 |
|
#include "copyright.h" |
| 9 |
|
|
| 10 |
– |
#include <sys/types.h> |
| 10 |
|
#include <signal.h> |
| 11 |
|
|
| 12 |
|
#include "platform.h" |
| 228 |
|
initotypes(); |
| 229 |
|
/* initialize urand */ |
| 230 |
|
initurand(2048); |
| 231 |
+ |
srandom(rand_samp ? (long)time(0) : 0L); |
| 232 |
|
/* set up signal handling */ |
| 233 |
|
sigdie(SIGINT, "Interrupt"); |
| 234 |
|
#ifdef SIGHUP |
| 274 |
|
openheader(); |
| 275 |
|
} |
| 276 |
|
#endif |
| 277 |
– |
#ifdef _WIN32 |
| 277 |
|
if (outform != 'a') |
| 278 |
|
SET_FILE_BINARY(stdout); |
| 280 |
– |
if (octname == NULL) |
| 281 |
– |
SET_FILE_BINARY(stdin); |
| 282 |
– |
#endif |
| 279 |
|
readoct(octname, loadflags, &thescene, NULL); |
| 280 |
|
nsceneobjs = nobjects; |
| 281 |
|
|