Upgrade to OpenSSL-0.9.8k.
[dragonfly.git] / crypto / openssl / doc / apps / rand.pod
blobd1d213ef43cbd07f1fc885393422049f2f9c3685
1 =pod
3 =head1 NAME
5 rand - generate pseudo-random bytes
7 =head1 SYNOPSIS
9 B<openssl rand>
10 [B<-out> I<file>]
11 [B<-rand> I<file(s)>]
12 [B<-base64>]
13 [B<-hex>]
14 I<num>
16 =head1 DESCRIPTION
18 The B<rand> command outputs I<num> pseudo-random bytes after seeding
19 the random number generator once.  As in other B<openssl> command
20 line tools, PRNG seeding uses the file I<$HOME/>B<.rnd> or B<.rnd>
21 in addition to the files given in the B<-rand> option.  A new
22 I<$HOME>/B<.rnd> or B<.rnd> file will be written back if enough
23 seeding was obtained from these sources.
25 =head1 OPTIONS
27 =over 4
29 =item B<-out> I<file>
31 Write to I<file> instead of standard output.
33 =item B<-rand> I<file(s)>
35 Use specified file or files or EGD socket (see L<RAND_egd(3)|RAND_egd(3)>)
36 for seeding the random number generator.
37 Multiple files can be specified separated by a OS-dependent character.
38 The separator is B<;> for MS-Windows, B<,> for OpenVMS, and B<:> for
39 all others.
41 =item B<-base64>
43 Perform base64 encoding on the output.
45 =item B<-hex>
47 Show the output as a hex string.
49 =back
51 =head1 SEE ALSO
53 L<RAND_bytes(3)|RAND_bytes(3)>
55 =cut