Skip to content
Snippets Groups Projects
Commit ca657074 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Fuzzing: initialize siphash key, don't init_logging twice.

parent 0666928c
No related branches found
No related tags found
No related merge requests found
......@@ -196,6 +196,9 @@ uptime-*.json
/src/test/test-timers.exe
/src/test/test_workqueue.exe
# /src/test/fuzz
/src/test/fuzz/fuzz-*
# /src/tools/
/src/tools/tor-checkkey
/src/tools/tor-resolve
......
......@@ -104,7 +104,10 @@ main(int argc, char **argv)
size_t size;
tor_threads_init();
init_logging(1);
{
struct sipkey sipkey = { 1337, 7331 };
siphash_set_global_key(&sipkey);
}
/* Disable logging by default to speed up fuzzing. */
int loglevel = LOG_ERR;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment