bn: fix BN_DEBUG + BN_DEBUG_RAND support
authorGeoff Thorpe <geoff@openssl.org>
Thu, 6 Oct 2016 13:25:22 +0000 (08:25 -0500)
committerRichard Levitte <levitte@openssl.org>
Wed, 1 Feb 2017 01:06:38 +0000 (02:06 +0100)
commit0b50ac1a0fe907f4effcf3f2f36dac32523938c5
treee2435e3b2911fdaff6702d11167029708567ef83
parent383e9ade2b0e8333c8a5907fe4ca73d38f9ca465
bn: fix BN_DEBUG + BN_DEBUG_RAND support

Couple of updates to make this code work properly again;
* use OPENSSL_assert() instead of assert() (and #include <assert.h>)
* the circular-dependency-avoidance uses RAND_bytes() (not pseudo)

Change-Id: Iefb5a9dd73f71fd81c1268495c54a64378955354
Signed-off-by: Geoff Thorpe <geoff@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1672)
crypto/bn/bn_lcl.h