diff options
author | Ben Laurie <ben@openssl.org> | 2008-10-19 22:51:27 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2008-10-19 22:51:27 +0000 |
commit | 0d6f9c7181ec892a38eb91e8c287726a7305923b (patch) | |
tree | 69c3e9cd1cf20a6a63627f4869123454359b9806 /crypto/bn/bn_rand.c | |
parent | 640b86cb24716aa9facdd146c28b990a4a9df8e0 (diff) |
Constification.
Diffstat (limited to 'crypto/bn/bn_rand.c')
-rw-r--r-- | crypto/bn/bn_rand.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/bn/bn_rand.c b/crypto/bn/bn_rand.c index f51830b12b..b376c28ff3 100644 --- a/crypto/bn/bn_rand.c +++ b/crypto/bn/bn_rand.c @@ -227,7 +227,7 @@ int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom) /* random number r: 0 <= r < range */ -static int bn_rand_range(int pseudo, BIGNUM *r, BIGNUM *range) +static int bn_rand_range(int pseudo, BIGNUM *r, const BIGNUM *range) { int (*bn_rand)(BIGNUM *, int, int, int) = pseudo ? BN_pseudo_rand : BN_rand; int n; @@ -294,12 +294,12 @@ static int bn_rand_range(int pseudo, BIGNUM *r, BIGNUM *range) } -int BN_rand_range(BIGNUM *r, BIGNUM *range) +int BN_rand_range(BIGNUM *r, const BIGNUM *range) { return bn_rand_range(0, r, range); } -int BN_pseudo_rand_range(BIGNUM *r, BIGNUM *range) +int BN_pseudo_rand_range(BIGNUM *r, const BIGNUM *range) { return bn_rand_range(1, r, range); } |