aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_crypto_random.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-08-15 21:46:35 +0000
committerChristian Grothoff <christian@grothoff.org>2011-08-15 21:46:35 +0000
commit502af2167f7c218366666ca4944bd7cc54b5b19a (patch)
treea91fec5cc9769d260640bd91c6633cb9cf395524 /src/util/test_crypto_random.c
parent03af5a603b7cc53432249d5854cd412aa90dde0d (diff)
downloadgnunet-502af2167f7c218366666ca4944bd7cc54b5b19a.tar.gz
gnunet-502af2167f7c218366666ca4944bd7cc54b5b19a.zip
indentation
Diffstat (limited to 'src/util/test_crypto_random.c')
-rw-r--r--src/util/test_crypto_random.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/util/test_crypto_random.c b/src/util/test_crypto_random.c
index 76230410d..46d3ed0aa 100644
--- a/src/util/test_crypto_random.c
+++ b/src/util/test_crypto_random.c
@@ -39,17 +39,17 @@ test (enum GNUNET_CRYPTO_Quality mode)
39 for (i = 0; i < 1024; i++) 39 for (i = 0; i < 1024; i++)
40 GNUNET_break (1024 > (buf[i] = GNUNET_CRYPTO_random_u32 (mode, 1024))); 40 GNUNET_break (1024 > (buf[i] = GNUNET_CRYPTO_random_u32 (mode, 1024)));
41 for (i = 0; i < 10; i++) 41 for (i = 0; i < 10; i++)
42 {
43 b2 = GNUNET_CRYPTO_random_permute (mode, 1024);
44 if (0 == memcmp (b2, buf, sizeof (buf)))
42 { 45 {
43 b2 = GNUNET_CRYPTO_random_permute (mode, 1024); 46 fprintf (stderr, "!");
44 if (0 == memcmp (b2, buf, sizeof (buf)))
45 {
46 fprintf (stderr, "!");
47 GNUNET_free (b2);
48 continue;
49 }
50 GNUNET_free (b2); 47 GNUNET_free (b2);
51 break; 48 continue;
52 } 49 }
50 GNUNET_free (b2);
51 break;
52 }
53 if (i == 10) 53 if (i == 10)
54 return 1; /* virtually impossible... */ 54 return 1; /* virtually impossible... */
55 55