rand.pod 1.1 KB

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