[#BN_rand_range_ex] = BN_rand_range_ex :mrdocs: Generate a cryptographically strong uniform random BIGNUM in [0, range).] == Synopsis Declared in `<openssl/bn.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int BN_rand_range_ex( xref:BIGNUM.adoc[BIGNUM]* r, xref:BIGNUM.adoc[BIGNUM] const* range, unsigned int strength, xref:BN_CTX.adoc[BN_CTX]* ctx); ---- == Return Value 1 on success, or 0 on error. == Parameters [cols="1,4"] |=== | Name| Description | *r* | Destination for the random value. | *range* | Exclusive upper bound; must be positive. | *strength* | Desired security strength in bits for the RNG draw. | *ctx* | BN_CTX for temporary storage, or NULL. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#