| 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 */ |
| 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 |