aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcryptobox
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-23 11:33:17 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-23 11:33:17 +0100
commitf58b6ce60c770a53290b017ecf7d4c407460c365 (patch)
tree18181d742cacef48d1e8b5f27a2d6d7cb87be87e /src/libcryptobox
parent36121e8e867c257fbffa7be515e8a2af43a2246e (diff)
downloadrspamd-f58b6ce60c770a53290b017ecf7d4c407460c365.tar.gz
rspamd-f58b6ce60c770a53290b017ecf7d4c407460c365.zip
Reduce test cycles to speedup tests.
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;