Sortix
Sortix Download Manual Development Source Code News Blog More
current nightly

Sortix cross-nightly manual

This manual documents Sortix cross-nightly. You can instead view this document in the latest official manual.

NAME

RAND_add, RAND_cleanup, RAND_poll, RAND_seed, RAND_status — manipulate the PRNG state

SYNOPSIS

#include <openssl/rand.h>
void
RAND_add(const void *buf, int num, double entropy);
void
RAND_cleanup(void);
int
RAND_poll(void);
void
RAND_seed(const void *buf, int num);
int
RAND_status(void);

DESCRIPTION

These functions used to allow for the state of the random number generator to be controlled by external sources.
They are kept for ABI compatibility but are no longer functional, and should not be used in new programs.

RETURN VALUES

RAND_poll() and RAND_status() always return 1.

HISTORY

RAND_cleanup() and RAND_seed() first appeared in SSLeay 0.5.1 and have been available since OpenBSD 2.4.
RAND_add() and RAND_status() first appeared in OpenSSL 0.9.5 and have been available since OpenBSD 2.7.
RAND_poll() first appeared in OpenSSL 0.9.6 and has been available since OpenBSD 2.9.
Copyright 2011-2025 Jonas 'Sortie' Termansen and contributors.
Sortix's source code is free software under the ISC license.
#sortix on irc.sortix.org
@sortix_org