aboutsummaryrefslogtreecommitdiff
path: root/tests/unittests/torture_rand.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unittests/torture_rand.c')
-rw-r--r--tests/unittests/torture_rand.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/unittests/torture_rand.c b/tests/unittests/torture_rand.c
index 087389c7..d5a1b5c5 100644
--- a/tests/unittests/torture_rand.c
+++ b/tests/unittests/torture_rand.c
@@ -3,7 +3,12 @@
#include <pthread.h>
#include "torture.h"
+#ifdef HAVE_LIBGCRYPT
#define NUM_LOOPS 1000
+#else
+/* openssl is much faster */
+#define NUM_LOOPS 20000
+#endif
#define NUM_THREADS 100
static void setup(){