aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcryptobox
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcryptobox')
-rw-r--r--src/libcryptobox/siphash/siphash.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcryptobox/siphash/siphash.c b/src/libcryptobox/siphash/siphash.c
index 14e679113..badb6fece 100644
--- a/src/libcryptobox/siphash/siphash.c
+++ b/src/libcryptobox/siphash/siphash.c
@@ -27,6 +27,7 @@
#include "platform_config.h"
extern unsigned long cpu_config;
+static const int test_iters = 1000;
typedef struct siphash_impl_t
{
@@ -166,7 +167,7 @@ siphash24_test (bool generic)
guchar c[sizeof (guint64)];
} r;
- for (cycles = 0; cycles < 100000; cycles ++) {
+ for (cycles = 0; cycles < test_iters; cycles ++) {
for (i = 0; i < sizeof in; ++i) {
in[i] = i;