From 1c1a4723fe5bc7e0f2dc0fef493b8bcda01f7dd0 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 13 Jul 2016 14:16:42 +0200 Subject: [PATCH 1/2] avoid stupidity --- test_crypto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_crypto.c b/test_crypto.c index b039011..83fdce6 100644 --- a/test_crypto.c +++ b/test_crypto.c @@ -364,13 +364,13 @@ cleanup_auction_data () int main (int argc, char *argv[]) { - int repeat = 8; + int repeat = 1; struct GNUNET_CRYPTO_EccDlogContext *edc; bidders = 2; prizes = 2 * bidders; - edc = GNUNET_CRYPTO_ecc_dlog_prepare (1024 * 1024, 1024); + edc = GNUNET_CRYPTO_ecc_dlog_prepare (1024, 16); BRANDT_init (edc); /* tests that need to run only once */ From 81cb7d524196dcfcd50f0080602d861305de642d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 13 Jul 2016 14:19:24 +0200 Subject: [PATCH 2/2] avoid stupidity --- test_crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_crypto.c b/test_crypto.c index 83fdce6..62cf263 100644 --- a/test_crypto.c +++ b/test_crypto.c @@ -186,7 +186,7 @@ test_setup_auction_data () { uint16_t i; - ad = calloc (bidders, sizeof (struct BRANDT_Auction)); + ad = GNUNET_new_array (bidders, struct BRANDT_Auction); for (i = 0; i < bidders; i++) {