bnrand_range: Always call bnrand() with the correct flag
authorKurt Roeckx <kurt@roeckx.be>
Sun, 4 Mar 2018 23:29:21 +0000 (00:29 +0100)
committerKurt Roeckx <kurt@roeckx.be>
Tue, 6 Mar 2018 17:32:35 +0000 (18:32 +0100)
commit3bc0ab06b0224fb72d08baa1843f3d36be361162
tree885dab5034a52e42254055d99a6520becbb34ea3
parentb524b808a1d1ba204dbdcbb42de4e3bddb3472ac
bnrand_range: Always call bnrand() with the correct flag

It was calling the BN_rand() when it should have call BN_priv_rand()

Reviewed-by: Tim Hudson <tjh@openssl.org>
GH: #5514
crypto/bn/bn_rand.c