Remove store.
[openssl.git] / doc / apps / rand.pod
1 =pod
2
3 =head1 NAME
4
5 rand - generate pseudo-random bytes
6
7 =head1 SYNOPSIS
8
9 B<openssl rand>
10 [B<-help>]
11 [B<-out> I<file>]
12 [B<-rand> I<file(s)>]
13 [B<-base64>]
14 [B<-hex>]
15 I<num>
16
17 =head1 DESCRIPTION
18
19 The B<rand> command outputs I<num> pseudo-random bytes after seeding
20 the random number generator once.  As in other B<openssl> command
21 line tools, PRNG seeding uses the file I<$HOME/>B<.rnd> or B<.rnd>
22 in addition to the files given in the B<-rand> option.  A new
23 I<$HOME>/B<.rnd> or B<.rnd> file will be written back if enough
24 seeding was obtained from these sources.
25
26 =head1 OPTIONS
27
28 =over 4
29
30 =item B<-help>
31
32 Print out a usage message.
33
34 =item B<-out> I<file>
35
36 Write to I<file> instead of standard output.
37
38 =item B<-rand> I<file(s)>
39
40 Use specified file or files or EGD socket (see L<RAND_egd(3)>)
41 for seeding the random number generator.
42 Multiple files can be specified separated by a OS-dependent character.
43 The separator is B<;> for MS-Windows, B<,> for OpenVMS, and B<:> for
44 all others.
45
46 =item B<-base64>
47
48 Perform base64 encoding on the output.
49
50 =item B<-hex>
51
52 Show the output as a hex string.
53
54 =back
55
56 =head1 SEE ALSO
57
58 L<RAND_bytes(3)>
59
60 =cut