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>] 13194206Ssimon[B<-hex>] 1459191SkrisI<num> 1559191Skris 1659191Skris=head1 DESCRIPTION 1759191Skris 1859191SkrisThe B<rand> command outputs I<num> pseudo-random bytes after seeding 19109998Smarkmthe random number generator once. As in other B<openssl> command 2059191Skrisline tools, PRNG seeding uses the file I<$HOME/>B<.rnd> or B<.rnd> 2159191Skrisin addition to the files given in the B<-rand> option. A new 2259191SkrisI<$HOME>/B<.rnd> or B<.rnd> file will be written back if enough 2359191Skrisseeding was obtained from these sources. 2459191Skris 2559191Skris=head1 OPTIONS 2659191Skris 2759191Skris=over 4 2859191Skris 2959191Skris=item B<-out> I<file> 3059191Skris 3159191SkrisWrite to I<file> instead of standard output. 3259191Skris 3359191Skris=item B<-rand> I<file(s)> 3459191Skris 3559191SkrisUse specified file or files or EGD socket (see L<RAND_egd(3)|RAND_egd(3)>) 3659191Skrisfor seeding the random number generator. 3759191SkrisMultiple files can be specified separated by a OS-dependent character. 3868651SkrisThe separator is B<;> for MS-Windows, B<,> for OpenVMS, and B<:> for 3959191Skrisall others. 4059191Skris 4159191Skris=item B<-base64> 4259191Skris 4359191SkrisPerform base64 encoding on the output. 4459191Skris 45194206Ssimon=item B<-hex> 46194206Ssimon 47194206SsimonShow the output as a hex string. 48194206Ssimon 4959191Skris=back 5059191Skris 5159191Skris=head1 SEE ALSO 5259191Skris 5359191SkrisL<RAND_bytes(3)|RAND_bytes(3)> 5459191Skris 5559191Skris=cut 56