BN_pseudo_rand

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

NameDescription
rndDestination BIGNUM.
bitsDesired bit length.
topBN_RAND_TOP_* controlling the most-significant bits.
bottomBN_RAND_BOTTOM_* controlling parity of the least-significant bit.