mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 23:58:20 +00:00
Adding new environment variable BRO_SEED_FILE to set the seed file for
the random number generator. This works like the corresponding command line option but is more convinient when writing tests as it can be set in btest.cfg.
This commit is contained in:
parent
de227b8d88
commit
d54c705898
1 changed files with 2 additions and 1 deletions
|
@ -196,6 +196,7 @@ void usage()
|
|||
fprintf(stderr, " $BROPATH | file search path (%s)\n", bro_path());
|
||||
fprintf(stderr, " $BRO_PREFIXES | prefix list (%s)\n", bro_prefixes());
|
||||
fprintf(stderr, " $BRO_DNS_FAKE | disable DNS lookups (%s)\n", bro_dns_fake());
|
||||
fprintf(stderr, " $BRO_SEED_FILE | file to load seeds from (not set)\n");
|
||||
|
||||
exit(1);
|
||||
}
|
||||
|
@ -350,7 +351,7 @@ int main(int argc, char** argv)
|
|||
char* bst_file = 0;
|
||||
char* id_name = 0;
|
||||
char* events_file = 0;
|
||||
char* seed_load_file = 0;
|
||||
char* seed_load_file = getenv("BRO_SEED_FILE");
|
||||
char* seed_save_file = 0;
|
||||
int seed = 0;
|
||||
int dump_cfg = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue