diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-09-12 21:09:18 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-09-12 21:32:42 -0400 |
commit | 4ff170d7b1cbe4074cb85271b82a8963eccc8286 (patch) | |
tree | 459640c64a49ee1342338647cd67570cac605516 /src/test/bench.c | |
parent | 491b6de1684e519d1fec870a5b46a4bb540cbc13 (diff) | |
download | tor-4ff170d7b1cbe4074cb85271b82a8963eccc8286.tar.gz tor-4ff170d7b1cbe4074cb85271b82a8963eccc8286.zip |
Fix warnings about passing uninitialized buffers into functions
Most of these buffers were never actually inspected, but it's still
bad style.
Diffstat (limited to 'src/test/bench.c')
-rw-r--r-- | src/test/bench.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/bench.c b/src/test/bench.c index a44dc94a61..9d589332ae 100644 --- a/src/test/bench.c +++ b/src/test/bench.c @@ -200,6 +200,7 @@ bench_onion_ntor_impl(void) curve25519_public_key_generate(&keypair2.pubkey, &keypair2.seckey); dimap_add_entry(&keymap, keypair1.pubkey.public_key, &keypair1); dimap_add_entry(&keymap, keypair2.pubkey.public_key, &keypair2); + crypto_rand((char *)nodeid, sizeof(nodeid)); reset_perftime(); start = perftime(); |