Generate a cryptographically strong uniform random BIGNUM in [0, range).]
Synopsis
Declared in <openssl/bn.h>
int
BN_rand_range_ex(
BIGNUM* r,
BIGNUM const* range,
unsigned int strength,
BN_CTX* ctx);
Return Value
1 on success, or 0 on error.
Parameters
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. |
Created with MrDocs