---
name: "libressl-RAND_add"
section: "3"
platform: "linux"
package: "libressl"
version: "4.4.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libressl-RAND_add"
---

# libressl-RAND\_add(3)

manipulate the PRNG state

## NAME

**RAND\_add**, **RAND\_cleanup**, **RAND\_poll**, **RAND\_seed**, **RAND\_status** – manipulate the PRNG state

## SYNOPSIS

Crypto Library (libcrypto, -lcrypto)

**#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.
