Generate a pseudo‐random BIGNUM (deprecated; prefer BN_rand / BN_priv_rand).
Synopsis
Declared in <openssl/bn.h>
[[deprecated]]
int
BN_pseudo_rand(
BIGNUM* rnd,
int bits,
int top,
int bottom);
|
Warning
|
Deprecated. Use of this entity is allowed but discouraged. |
Return Value
1 on success, or 0 on failure.
Parameters
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. |
Created with MrDocs