From 37b729d7fdd49da5466696f7995a96ebb54fbcbb Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sun, 13 Apr 2014 12:09:48 +0200 Subject: [PATCH] Properly initialize buffers. Valgrind complained about use of uninitialized data. --- src/sptps_speed.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sptps_speed.c b/src/sptps_speed.c index 268e6c9b..d9776b7e 100644 --- a/src/sptps_speed.c +++ b/src/sptps_speed.c @@ -82,6 +82,10 @@ int main(int argc, char *argv[]) { crypto_init(); + randomize(buf1, sizeof buf1); + randomize(buf2, sizeof buf2); + randomize(buf3, sizeof buf3); + // Key generation fprintf(stderr, "Generating keys for %lg seconds: ", duration); -- 2.20.1