diff options
author | Bodo Möller <bodo@openssl.org> | 2001-02-10 00:34:02 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2001-02-10 00:34:02 +0000 |
commit | e306892994a0f189089916d2ea66b3bdc0b2d777 (patch) | |
tree | 94199007669d4e72e954df3615b86bae9a3c742c /doc | |
parent | 836f996010d6a5f38d9a13279c37e84a42819966 (diff) | |
download | openssl-e306892994a0f189089916d2ea66b3bdc0b2d777.tar.gz |
Simplify BN_rand_range
Diffstat (limited to 'doc')
-rw-r--r-- | doc/crypto/BN_rand.pod | 5 | ||||
-rw-r--r-- | doc/crypto/bn.pod | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/doc/crypto/BN_rand.pod b/doc/crypto/BN_rand.pod index e4c94e3d12..2a8bed5fed 100644 --- a/doc/crypto/BN_rand.pod +++ b/doc/crypto/BN_rand.pod @@ -12,7 +12,7 @@ BN_rand, BN_pseudo_rand - generate pseudo-random number int BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom); - int BN_rand_range(BIGNUM *rnd, BIGNUM *min, BIGNUM *range); + int BN_rand_range(BIGNUM *rnd, BIGNUM *range); =head1 DESCRIPTION @@ -28,8 +28,7 @@ non-cryptographic purposes and for certain purposes in cryptographic protocols, but usually not for key generation etc. BN_rand_range() generates a cryptographically strong pseudo-random -number B<rnd> in the range B<min> E<lt>= B<rnd> E<lt> B<min> + B<range>. -B<min> may be NULL, in that case 0 E<lt>= B<rnd> E<lt> B<range>. +number B<rnd> in the range 0 <lt>= B<rnd> E<lt> B<range>. The PRNG must be seeded prior to calling BN_rand() or BN_rand_range(). diff --git a/doc/crypto/bn.pod b/doc/crypto/bn.pod index 8558ccfcd5..f7ce9dfd43 100644 --- a/doc/crypto/bn.pod +++ b/doc/crypto/bn.pod @@ -68,7 +68,7 @@ bn - multiprecision integer arithmetics int BN_rand(BIGNUM *rnd, int bits, int top, int bottom); int BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom); - int BN_rand_range(BIGNUM *rnd, BIGNUM *min, BIGNUM *max); + int BN_rand_range(BIGNUM *rnd, BIGNUM *range); BIGNUM *BN_generate_prime(BIGNUM *ret, int bits,int safe, BIGNUM *add, BIGNUM *rem, void (*callback)(int, int, void *), void *cb_arg); |