Generate a cryptographically strong uniform private random BIGNUM in [0, ]`range).`

Synopsis

Declared in <openssl/bn.h>

int
BN_priv_rand_range(
    BIGNUM* rnd,
    BIGNUM const* range);

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