]> git.ipfire.org Git - thirdparty/openssl.git/commit - test/bntest.c
Statistically test BN_rand_range().
authorPauli <paul.dale@oracle.com>
Wed, 24 Apr 2019 01:24:11 +0000 (11:24 +1000)
committerPauli <paul.dale@oracle.com>
Thu, 25 Apr 2019 13:02:22 +0000 (23:02 +1000)
commitbb5b3e6dd0575a4fa96f5085228b716062c00502
treed9a6f2a65cc36a0aa5a605e0db764b272c237b65
parent3119ab3c9e6d211c461a245f3744893e17b6c193
Statistically test BN_rand_range().

Add a Chi^2 goodness of fit test to empirically provide a degree of confidence
in the uniformity of the output of the random range generation function.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8818)
test/bntest.c