summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2023-03-08 06:44:45 +0000
committertb <>2023-03-08 06:44:45 +0000
commit3dbc52233811e638e65b556636245ba80afdc33d (patch)
tree04afcd1fe9b1b9e1ba4ef7e414244bb2ec73d1e8 /src
parent8a2cc3425848fef02e282071f4d343963854fa0d (diff)
downloadopenbsd-3dbc52233811e638e65b556636245ba80afdc33d.tar.gz
openbsd-3dbc52233811e638e65b556636245ba80afdc33d.tar.bz2
openbsd-3dbc52233811e638e65b556636245ba80afdc33d.zip
reduce number of tests in bn_rand_interval.
This is only testing basic functionality anyway, so 10000 tests are more than enough.
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libcrypto/bn/bn_rand_interval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/bn/bn_rand_interval.c b/src/regress/lib/libcrypto/bn/bn_rand_interval.c
index 032edfb497..3c5eaac041 100644
--- a/src/regress/lib/libcrypto/bn/bn_rand_interval.c
+++ b/src/regress/lib/libcrypto/bn/bn_rand_interval.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_rand_interval.c,v 1.1 2022/12/01 20:50:10 tb Exp $ */ 1/* $OpenBSD: bn_rand_interval.c,v 1.2 2023/03/08 06:44:45 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> 3 * Copyright (c) 2018 Theo Buehler <tb@openbsd.org>
4 * 4 *
@@ -20,7 +20,7 @@
20 20
21#include <openssl/bn.h> 21#include <openssl/bn.h>
22 22
23#define NUM_TESTS 1000000 23#define NUM_TESTS 10000
24 24
25int bn_rand_interval(BIGNUM *rnd, const BIGNUM *lower_incl, 25int bn_rand_interval(BIGNUM *rnd, const BIGNUM *lower_incl,
26 const BIGNUM *upper_excl); 26 const BIGNUM *upper_excl);