diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-09-01 14:07:45 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-09-01 14:07:45 +0200 |
commit | 8c55294ea9134c32f80d1a399a6a49ecdc9264b2 (patch) | |
tree | a21f32ae1501abf56c21f49f588503580a2c12ba /tests/unittests | |
parent | 50d8d75d890e16e8d4d3f4dd51de05812c0c3a1f (diff) | |
download | libssh-8c55294ea9134c32f80d1a399a6a49ecdc9264b2.tar.gz libssh-8c55294ea9134c32f80d1a399a6a49ecdc9264b2.tar.xz libssh-8c55294ea9134c32f80d1a399a6a49ecdc9264b2.zip |
Openssl implementation of threading + default imp
Diffstat (limited to 'tests/unittests')
-rw-r--r-- | tests/unittests/torture_rand.c | 5 |
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(){ |