diff options
Diffstat (limited to 'src/setu/test_setu_api.c')
-rw-r--r-- | src/setu/test_setu_api.c | 10 |
1 files changed, 5 insertions, 5 deletions
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) | |||
210 | 210 | ||
211 | unsigned char *gen_rdm_bytestream (size_t num_bytes) | 211 | unsigned char *gen_rdm_bytestream (size_t num_bytes) |
212 | { | 212 | { |
213 | unsigned char *stream = GNUNET_malloc (num_bytes); | 213 | unsigned char *stream = GNUNET_malloc (num_bytes + 1); |
214 | GNUNET_CRYPTO_random_block(GNUNET_CRYPTO_QUALITY_WEAK, stream, sizeof(stream)); | 214 | GNUNET_CRYPTO_random_block(GNUNET_CRYPTO_QUALITY_WEAK, stream, num_bytes - 1); |
215 | return stream; | 215 | return stream; |
216 | } | 216 | } |
217 | 217 | ||
@@ -392,9 +392,9 @@ run (void *cls, | |||
392 | /* test the real set reconciliation */ | 392 | /* test the real set reconciliation */ |
393 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 393 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
394 | "Running real set-reconciliation\n"); | 394 | "Running real set-reconciliation\n"); |
395 | init_set1 (); | 395 | //init_set1 (); |
396 | // limit ~23800 element total | 396 | initRandomSets(19500,20000,20000,4096); |
397 | //initRandomSets(9990,9997,9997,32); | 397 | //initRandomSets(19500,20000,20000,32); |
398 | } | 398 | } |
399 | 399 | ||
400 | 400 | ||