1RAND(1)                             OpenSSL                            RAND(1)
2
3
4

NAME

6       rand - generate pseudo-random bytes
7

SYNOPSIS

9       openssl rand [-out file] [-rand file(s)] [-base64] [-hex] num
10

DESCRIPTION

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

OPTIONS

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

SEE ALSO

35       RAND_bytes(3)
36
37
38
391.0.2k                            2017-01-26                           RAND(1)
Impressum