OPENSSL-RAND(1ssl) OpenSSL OPENSSL-RAND(1ssl) (NAME) openssl-rand - (SYNOPSIS) openssl rand [-help] [-out file] [-base64] [-hex] [-engine id] [-rand files] [-writerand file] [-provider name] [-provider-path path] [-provparam [name:]key=value] [-propquery propq] num[K|M|G|T] (DESCRIPTION) (CSPRNG) num . [K|M|G|T] num KiB/MiB/GiB/TiB . () (K = 1024 M = 1024*1024 ). 'max' num CSPRNG . NIST SP 800-90C 2^61 . RAND_bytes(3) (seed) . . RAND_bytes(3) RAND(7) EVP_RAND(7) . (OPTIONS) -help . -out file file . -base64 base64 . -hex (hex). -engine id "Engine Options" openssl(1) . . -rand files, -writerand file "Random State Options" openssl(1) . -provider name -provider-path path -provparam [name:]key=value -propquery propq "Provider Options" openssl(1) provider(7) property(7) . (SEE ALSO) openssl(1), RAND_bytes(3), RAND(7), EVP_RAND(7) (HISTORY) -engine OpenSSL 3.0 . (COPYRIGHT) 2000-2021 OpenSSL. . 2.0 ("") . . LICENSE . 3.6.4 2026-08-25 OPENSSL-RAND(1ssl)