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