On this page
  1. ssl.RAND_add
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

ssl.RAND_add

Prev: ssl.Purpose | Up: ssl | Next: ssl.RAND_bytes
Rel: ssl.AlertDescription, ssl.cert_time_to_seconds, ssl.CertificateError, ssl.create_connection
Ref: docs.python.org — ssl.RAND_add
Tags: #public #python3 #stdlib #ssl


Import

import ssl
from ssl import RAND_add

Signature & Overview

ssl.RAND_add(string, entropy, /)

Mix string into the OpenSSL PRNG state.

Usage

import ssl

# Legacy OpenSSL PRNG entropy mixer (modern OS CSPRNGs handle seeding automatically)
ssl.RAND_add(b"extra-entropy", 0.0)

Gotchas

REPL Inspect

from ssl import RAND_add
help(RAND_add)

Linked from

Related notes