RAND(1) OpenSSL RAND(1)
NAME
rand(1,3) - generate pseudo-random bytes
SYNOPSIS
openssl rand(1,3) [-out file(1,n)] [-rand file(1,n)(s)] [-base64] num
DESCRIPTION
The rand(1,3) command outputs num pseudo-random bytes after seeding the ran-
dom(3,4,6) number generator once. As in(1,8) other openssl command line tools,
PRNG seeding uses the file(1,n) $HOME/.rnd or .rnd in(1,8) addition to the files
given in(1,8) the -rand option. A new $HOME/.rnd or .rnd file(1,n) will be writ-
ten back if(3,n) enough seeding was obtained from these sources.
OPTIONS
-out file(1,n)
Write to file(1,n) instead of standard output.
-rand file(1,n)(s)
Use specified file(1,n) or files or EGD socket(2,7,n) (see RAND_egd(3)) for
seeding the random(3,4,6) number generator. Multiple files can be speci-
fied separated by a OS-dependent character. The separator is ; for
MS-Windows, , for OpenVMS, and : for all others.
-base64
Perform base64 encoding(3,n) on the output.
SEE ALSO
RAND_bytes(3)
0.9.7d 2001-09-06 RAND(1)