RAND_SET_RAND_METHOD(3)
β¨ NAME β¨
okay so bestie, welcome to the RAND_SET_RAND_METHOD(3) page from the Library Functions Manual π
the whole squad here is RAND_set_rand_method, RAND_get_rand_method, and RAND_SSLeay β and their whole thing is to select RAND method. thatβs the vibe π
πΈ SYNOPSIS πΈ
#include <openssl/rand.h>
int
RAND_set_rand_method(const RAND_METHOD *meth);
const RAND_METHOD *
RAND_get_rand_method(void);
RAND_METHOD *
RAND_SSLeay(void);
π¦ DESCRIPTION π¦
okay so back in the day, these functions used to allow for the random number generator functions to be replaced by arbitrary code. like, plug in your own RNG? iconic concept, but thatβs the lore β¨
now? they are kept for ABI compatibility but are no longer functional, and should not be used in new programs. not me warning you: do not build new stuff on these. theyβre giving legacy placeholder energy fr fr ππ
β RETURN VALUES β
RAND_set_rand_method()β always returns1. slay for predictability, I guess πRAND_get_rand_method()β always returnsNULL.RAND_SSLeay()β always returnsNULL.
π HISTORY π
RAND_set_rand_method(), RAND_get_rand_method(), and RAND_SSLeay() first appeared in SSLeay 0.9.1 and have been available since OpenBSD 2.6. vintage behavior, honestly ππ·
cute sign-off bestie: this pageβs source/version is Debian, dated March 21, 2018, and the manual is RAND_SET_RAND_METHOD(3) π«Άβ¨
π¦ where this page comes from
- opensuse-leap 16.0: libressl-devel-doc 4.1.0-bp160.1.1 Β· OpenSSL
- Copyright (c) 2014 Miod Vallat <miod@openbsd.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms