RAND_set_rand_method

Install the legacy RAND_METHOD used by RAND_bytes and related APIs (deprecated).

Synopsis

Declared in <openssl/rand.h>

[[deprecated]]
int
RAND_set_rand_method(RAND_METHOD const* meth);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
methMethod table to make current, or NULL to clear.