Generate a pseudo‐random BIGNUM in [0, ]`range)` (deprecated; prefer BN_rand_range).

Synopsis

Declared in <openssl/bn.h>

[[deprecated]]
int
BN_pseudo_rand_range(
    BIGNUM* rnd,
    BIGNUM const* range);
Warning

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success, or 0 on failure.

Parameters

Name

Description

rnd

Destination for the random value.

range

Exclusive upper bound; must be positive.

Created with MrDocs