#define LIBSSH_STATIC #include #include #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(){ ssh_init(); } static void *torture_rand_thread(void *threadid){ char buffer[12]; int i; int r; (void)threadid; buffer[0]=buffer[1]=buffer[10]=buffer[11]='X'; for(i=0;i