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:03:51 +0000 (23:03 +1000)
commit4a71766793bbd54da8915619d497c1bfd8646256
tree0bf2fa31cad2b455884850523ad257aaa8f378a4
parentfc4c034ee823c18de34d72dc46da6aabbb6f551e
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)

(cherry picked from commit bb5b3e6dd0575a4fa96f5085228b716062c00502)
test/bntest.c