-remove async ecc key generation, not needed
[oweals/gnunet.git] / src / util / test_crypto_random.c
index 76230410df46578b23629cbb16d7f12694baf10d..681947a60b9a12e9cdb8950d22236d4663f7557b 100644 (file)
@@ -39,17 +39,17 @@ test (enum GNUNET_CRYPTO_Quality mode)
   for (i = 0; i < 1024; i++)
     GNUNET_break (1024 > (buf[i] = GNUNET_CRYPTO_random_u32 (mode, 1024)));
   for (i = 0; i < 10; i++)
+  {
+    b2 = GNUNET_CRYPTO_random_permute (mode, 1024);
+    if (0 == memcmp (b2, buf, sizeof (buf)))
     {
-      b2 = GNUNET_CRYPTO_random_permute (mode, 1024);
-      if (0 == memcmp (b2, buf, sizeof (buf)))
-        {
-          fprintf (stderr, "!");
-          GNUNET_free (b2);
-          continue;
-        }
+      FPRINTF (stderr, "%s",  "!");
       GNUNET_free (b2);
-      break;
+      continue;
     }
+    GNUNET_free (b2);
+    break;
+  }
   if (i == 10)
     return 1;                   /* virtually impossible... */