diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-04-30 14:49:05 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-04-30 14:49:05 -0400 |
commit | 295feeb09377c4d78f9ee43ec3197b908d7cb960 (patch) | |
tree | 9fe43c9444b3812bc585487e20442056a2d08735 /src/test/test_shared_random.c | |
parent | 0034f1095680e2b05c19ec13368ddc936a53058a (diff) | |
download | tor-295feeb09377c4d78f9ee43ec3197b908d7cb960.tar.gz tor-295feeb09377c4d78f9ee43ec3197b908d7cb960.zip |
Replace all remaining tor_mem_is_zero() with fast_mem_is_zero()
Diffstat (limited to 'src/test/test_shared_random.c')
-rw-r--r-- | src/test/test_shared_random.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_shared_random.c b/src/test/test_shared_random.c index 480799383b..9fb88b9bee 100644 --- a/src/test/test_shared_random.c +++ b/src/test/test_shared_random.c @@ -449,12 +449,12 @@ test_sr_commit(void *arg) /* We should have a reveal value. */ tt_assert(commit_has_reveal_value(our_commit)); /* We should have a random value. */ - tt_assert(!tor_mem_is_zero((char *) our_commit->random_number, + tt_assert(!fast_mem_is_zero((char *) our_commit->random_number, sizeof(our_commit->random_number))); /* Commit and reveal timestamp should be the same. */ tt_u64_op(our_commit->commit_ts, OP_EQ, our_commit->reveal_ts); /* We should have a hashed reveal. */ - tt_assert(!tor_mem_is_zero(our_commit->hashed_reveal, + tt_assert(!fast_mem_is_zero(our_commit->hashed_reveal, sizeof(our_commit->hashed_reveal))); /* Do we have a valid encoded commit and reveal. Note the following only * tests if the generated values are correct. Their could be a bug in |