Generate a pseudo-random BIGNUM (deprecated; prefer BN_rand / BN_priv_rand).
Declared in <openssl/bn.h>
[[deprecated]]
int
BN_pseudo_rand(
BIGNUM* rnd,
int bits,
int top,
int bottom);
Deprecated. Use of this entity is allowed but discouraged.
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| rnd | Destination BIGNUM. |
| bits | Desired bit length. |
| top | BN_RAND_TOP_* controlling the most-significant bits. |
| bottom | BN_RAND_BOTTOM_* controlling parity of the least-significant bit. |