1RAND(1) OpenSSL RAND(1)
2
3
4
6 rand - generate pseudo-random bytes
7
9 openssl rand [-out file] [-rand file(s)] [-base64] [-hex] num
10
12 The rand command outputs num pseudo-random bytes after seeding the
13 random 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
16 written 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
25 specified separated by a OS-dependent character. The separator is
26 ; for MS-Windows, , for OpenVMS, and : for all others.
27
28 -base64
29 Perform base64 encoding on the output.
30
31 -hex
32 Show the output as a hex string.
33
35 RAND_bytes(3)
36
37
38
391.0.0e 2009-02-02 RAND(1)