From b5660e0a33f4c7a819de0b5056172f78f912e352 Mon Sep 17 00:00:00 2001 From: Elias Summermatter Date: Wed, 31 Mar 2021 11:16:38 +0200 Subject: SETU imporved tests --- src/setu/test_setu_api.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/setu/test_setu_api.c') diff --git a/src/setu/test_setu_api.c b/src/setu/test_setu_api.c index 797e3f534..d573cfe3c 100644 --- a/src/setu/test_setu_api.c +++ b/src/setu/test_setu_api.c @@ -210,8 +210,8 @@ init_set2 (void *cls) unsigned char *gen_rdm_bytestream (size_t num_bytes) { - unsigned char *stream = GNUNET_malloc (num_bytes); - GNUNET_CRYPTO_random_block(GNUNET_CRYPTO_QUALITY_WEAK, stream, sizeof(stream)); + unsigned char *stream = GNUNET_malloc (num_bytes + 1); + GNUNET_CRYPTO_random_block(GNUNET_CRYPTO_QUALITY_WEAK, stream, num_bytes - 1); return stream; } @@ -392,9 +392,9 @@ run (void *cls, /* test the real set reconciliation */ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Running real set-reconciliation\n"); - init_set1 (); - // limit ~23800 element total - //initRandomSets(9990,9997,9997,32); + //init_set1 (); + initRandomSets(19500,20000,20000,4096); + //initRandomSets(19500,20000,20000,32); } -- cgit v1.2.3