[#BN_bntest_rand] = BN_bntest_rand :mrdocs: Generate a non‐cryptographic test random BIGNUM for BN self‐tests. == Synopsis Declared in `<openssl/bn.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int BN_bntest_rand( xref:BIGNUM.adoc[BIGNUM]* rnd, int bits, int top, int bottom); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *rnd* | Destination BIGNUM. | *bits* | Desired bit length. | *top* | BN_RAND_TOP_* controlling the most‐significant bits. | *bottom* | BN_RAND_BOTTOM_* controlling the least‐significant bit. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#