mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38: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
68a30a0b5a
commit
050680aa63
1 changed files with 2 additions and 1 deletions
|
@ -189,6 +189,7 @@ void usage()
|
||||||
fprintf(stderr, " $BROPATH | file search path (%s)\n", bro_path());
|
fprintf(stderr, " $BROPATH | file search path (%s)\n", bro_path());
|
||||||
fprintf(stderr, " $BRO_PREFIXES | prefix list (%s)\n", bro_prefixes());
|
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_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);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
@ -341,7 +342,7 @@ int main(int argc, char** argv)
|
||||||
char* bst_file = 0;
|
char* bst_file = 0;
|
||||||
char* id_name = 0;
|
char* id_name = 0;
|
||||||
char* events_file = 0;
|
char* events_file = 0;
|
||||||
char* seed_load_file = 0;
|
char* seed_load_file = getenv("BRO_SEED_FILE");
|
||||||
char* seed_save_file = 0;
|
char* seed_save_file = 0;
|
||||||
int seed = 0;
|
int seed = 0;
|
||||||
int dump_cfg = false;
|
int dump_cfg = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue