1RAND(1) OpenSSL RAND(1)
2
3
4
6 rand - generate pseudo-random bytes
7
9 openssl rand [-out file] [-rand file(s)] [-base64] num
10
12 The rand command outputs num pseudo-random bytes after seeding the ran‐
13 dom number generator once. As in other openssl command line tools,
14 PRNG seeding uses the file $HOME/.rnd or .rnd in addition to the files
15 given in the -rand option. A new $HOME/.rnd or .rnd file will be writ‐
16 ten back if enough seeding was obtained from these sources.
17
19 -out file
20 Write to file instead of standard output.
21
22 -rand file(s)
23 Use specified file or files or EGD socket (see RAND_egd(3)) for
24 seeding the random number generator. Multiple files can be speci‐
25 fied separated by a OS-dependent character. The separator is ; for
26 MS-Windows, , for OpenVMS, and : for all others.
27
28 -base64
29 Perform base64 encoding on the output.
30
32 RAND_bytes(3)
33
34
35
360.9.8b 2001-09-07 RAND(1)