9 |
|
*/ |
10 |
|
|
11 |
|
#include "rholo.h" |
12 |
+ |
#include "random.h" |
13 |
|
#include "paths.h" |
14 |
|
#include <signal.h> |
15 |
|
#include <sys/types.h> |
62 |
|
int force = 0; |
63 |
|
/* mark start time */ |
64 |
|
starttime = time(NULL); |
65 |
+ |
initurand(10240); /* initialize urand */ |
66 |
|
progname = argv[0]; /* get arguments */ |
67 |
|
for (i = 1; i < argc && argv[i][0] == '-'; i++) |
68 |
|
switch (argv[i][1]) { |
370 |
|
if (!vdef(OBSTRUCTIONS)) { |
371 |
|
vval(OBSTRUCTIONS) = "T"; |
372 |
|
vdef(OBSTRUCTIONS)++; |
373 |
+ |
} |
374 |
+ |
if (!vdef(VDIST)) { |
375 |
+ |
vval(VDIST) = "F"; |
376 |
+ |
vdef(VDIST)++; |
377 |
|
} |
378 |
|
if (!vdef(OCCUPANCY)) { |
379 |
|
vval(OCCUPANCY) = "U"; |