[#RAND_pseudo_bytes] = RAND_pseudo_bytes :mrdocs: Fill a buffer with bytes that need not be cryptographically strong (deprecated). == Synopsis Declared in `<openssl/rand.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] int RAND_pseudo_bytes( unsigned char* buf, int num); ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged. ==== == Description Prefer RAND_bytes() for all new code. == Return Value 1 if the bytes are cryptographically strong, 0 if only pseudo‐random, or ‐1 on error. == Parameters [cols="1,4"] |=== | Name| Description | *buf* | Destination buffer to fill. | *num* | Number of bytes to write. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#