diff options
author | Rich Salz <rsalz@openssl.org> | 2017-06-21 13:55:02 +0100 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2017-07-03 19:26:56 -0400 |
commit | 5ecff87d666f47d0003b106c61ada1e25655b81d (patch) | |
tree | 108956af50bdc6bf5d396014fe700b2c18565244 /crypto/bn/bn_prime.c | |
parent | 299c9cbb631869026537c96b7431d7682dd3c008 (diff) |
BN_pseudo_rand is really BN_rand
And BN_pseudo_rand_range is really BN_rand_range.
Document that we might deprecate those functions.
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3743)
Diffstat (limited to 'crypto/bn/bn_prime.c')
-rw-r--r-- | crypto/bn/bn_prime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/bn/bn_prime.c b/crypto/bn/bn_prime.c index b74699b6ca..4581a66bf6 100644 --- a/crypto/bn/bn_prime.c +++ b/crypto/bn/bn_prime.c @@ -216,7 +216,7 @@ int BN_is_prime_fasttest_ex(const BIGNUM *a, int checks, BN_CTX *ctx_passed, goto err; for (i = 0; i < checks; i++) { - if (!BN_pseudo_rand_range(check, A1)) + if (!BN_rand_range(check, A1)) goto err; if (!BN_add_word(check, 1)) goto err; |