rand.pod revision 68651
159191Skris=pod
259191Skris
359191Skris=head1 NAME
459191Skris
559191Skrisrand - generate pseudo-random bytes
659191Skris
759191Skris=head1 SYNOPSIS
859191Skris
959191SkrisB<openssl rand>
1059191Skris[B<-out> I<file>]
1159191Skris[B<-rand> I<file(s)>]
1259191Skris[B<-base64>]
1359191SkrisI<num>
1459191Skris
1559191Skris=head1 DESCRIPTION
1659191Skris
1759191SkrisThe B<rand> command outputs I<num> pseudo-random bytes after seeding
1859191Skristhe random number generater once.  As in other B<openssl> command
1959191Skrisline tools, PRNG seeding uses the file I<$HOME/>B<.rnd> or B<.rnd>
2059191Skrisin addition to the files given in the B<-rand> option.  A new
2159191SkrisI<$HOME>/B<.rnd> or B<.rnd> file will be written back if enough
2259191Skrisseeding was obtained from these sources.
2359191Skris
2459191Skris=head1 OPTIONS
2559191Skris
2659191Skris=over 4
2759191Skris
2859191Skris=item B<-out> I<file>
2959191Skris
3059191SkrisWrite to I<file> instead of standard output.
3159191Skris
3259191Skris=item B<-rand> I<file(s)>
3359191Skris
3459191SkrisUse specified file or files or EGD socket (see L<RAND_egd(3)|RAND_egd(3)>)
3559191Skrisfor seeding the random number generator.
3659191SkrisMultiple files can be specified separated by a OS-dependent character.
3768651SkrisThe separator is B<;> for MS-Windows, B<,> for OpenVMS, and B<:> for
3859191Skrisall others.
3959191Skris
4059191Skris=item B<-base64>
4159191Skris
4259191SkrisPerform base64 encoding on the output.
4359191Skris
4459191Skris=back
4559191Skris
4659191Skris=head1 SEE ALSO
4759191Skris
4859191SkrisL<RAND_bytes(3)|RAND_bytes(3)>
4959191Skris
5059191Skris=cut
51