aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-02-12 11:46:58 -0500
committerNick Mathewson <nickm@torproject.org>2014-02-12 12:12:58 -0500
commitc1e98c8afe2973286f9bef28e760cbf95a2738fd (patch)
tree11cc4f29d43fc020204cde717733cc4bc1b791c8 /src/test
parentd3fb846d8c98c13d349762682e714e8312f20270 (diff)
downloadtor-c1e98c8afe2973286f9bef28e760cbf95a2738fd.tar
tor-c1e98c8afe2973286f9bef28e760cbf95a2738fd.tar.gz
Randomize the global siphash key at startup
This completes our conversion to using siphash for our hash functions.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/bench.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/bench.c b/src/test/bench.c
index ae311b53c..c9cc101b7 100644
--- a/src/test/bench.c
+++ b/src/test/bench.c
@@ -544,6 +544,7 @@ main(int argc, const char **argv)
reset_perftime();
crypto_seed_rng(1);
+ crypto_init_siphash_key();
options = options_new();
init_logging();
options->command = CMD_RUN_UNITTESTS;