Fix faulty detail in BN_rand() manual

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17131)
This commit is contained in:
Richard Levitte 2021-11-25 08:58:21 +01:00
parent 7a2ad00f3e
commit 391ce6d980

View File

@ -53,7 +53,7 @@ the number will be set to 1, so that the product of two such random
numbers will always have 2*I<bits> length. numbers will always have 2*I<bits> length.
If I<bottom> is B<BN_RAND_BOTTOM_ODD>, the number will be odd; if it If I<bottom> is B<BN_RAND_BOTTOM_ODD>, the number will be odd; if it
is B<BN_RAND_BOTTOM_ANY> it can be odd or even. is B<BN_RAND_BOTTOM_ANY> it can be odd or even.
If I<bits> is 1 then I<top> cannot also be B<BN_RAND_FLG_TOPTWO>. If I<bits> is 1 then I<top> cannot also be B<BN_RAND_TOP_TWO>.
BN_rand() is the same as BN_rand_ex() except that the default library context BN_rand() is the same as BN_rand_ex() except that the default library context
is always used. is always used.