summaryrefslogtreecommitdiff
path: root/INSTALL
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2019-05-29 09:54:29 +1000
committerPauli <paul.dale@oracle.com>2019-05-29 09:54:29 +1000
commit5d2f3e4a6c3e62677cdf3b33d8b9b08ff7d52dc7 (patch)
tree36c697b0b6bc6552ff3471e26c8c49bcf5410d9e /INSTALL
parentd4e2d5db621a512eff8a0ab07d3ac44d7122428a (diff)
downloadopenssl-new-5d2f3e4a6c3e62677cdf3b33d8b9b08ff7d52dc7.tar.gz
Test of uniformity of BN_rand_range output.
Rework the test so that it fails far less often. A number of independent tests are executed and 5% are expected to fail. The number of such failures follows a binomial distribution which permits a statistical test a 0.01% expected failure rate. There is a command line option to enable the stochastic range checking. It is off by default. Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8830)
Diffstat (limited to 'INSTALL')
-rw-r--r--INSTALL5
1 files changed, 5 insertions, 0 deletions
diff --git a/INSTALL b/INSTALL
index 88425a8c81..605f1d4cdb 100644
--- a/INSTALL
+++ b/INSTALL
@@ -1200,6 +1200,11 @@
$ make TESTS='[89]? -90'
+To stochastically verify that the algorithm that produces uniformly distributed
+random numbers is operating correctly (with a false positive rate of 0.01%):
+
+ $ ./util/shlib_wrap.sh test/bntest -stochastic
+
Note on multi-threading
-----------------------