[#BN_pseudo_rand] = BN_pseudo_rand :mrdocs: Generate a pseudo‐random BIGNUM (deprecated; prefer BN_rand / BN_priv_rand). == Synopsis Declared in `<openssl/bn.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] int BN_pseudo_rand( xref:BIGNUM.adoc[BIGNUM]* rnd, int bits, int top, int bottom); ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged. ==== == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#