rand.pod 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. =pod
  2. =head1 NAME
  3. openssl-rand,
  4. rand - generate pseudo-random bytes
  5. =head1 SYNOPSIS
  6. B<openssl rand>
  7. [B<-help>]
  8. [B<-out> I<file>]
  9. [B<-rand file...>]
  10. [B<-writerand file>]
  11. [B<-base64>]
  12. [B<-hex>]
  13. I<num>
  14. =head1 DESCRIPTION
  15. The B<rand> command outputs I<num> pseudo-random bytes after seeding
  16. the random number generator once. As in other B<openssl> command
  17. line tools, PRNG seeding uses the file I<$HOME/>B<.rnd> or B<.rnd>
  18. in addition to the files given in the B<-rand> option. A new
  19. I<$HOME>/B<.rnd> or B<.rnd> file will be written back if enough
  20. seeding was obtained from these sources.
  21. =head1 OPTIONS
  22. =over 4
  23. =item B<-help>
  24. Print out a usage message.
  25. =item B<-out file>
  26. Write to I<file> instead of standard output.
  27. =item B<-rand file...>
  28. A file or files containing random data used to seed the random number
  29. generator.
  30. Multiple files can be specified separated by an OS-dependent character.
  31. The separator is B<;> for MS-Windows, B<,> for OpenVMS, and B<:> for
  32. all others.
  33. =item [B<-writerand file>]
  34. Writes random data to the specified I<file> upon exit.
  35. This can be used with a subsequent B<-rand> flag.
  36. =item B<-base64>
  37. Perform base64 encoding on the output.
  38. =item B<-hex>
  39. Show the output as a hex string.
  40. =back
  41. =head1 SEE ALSO
  42. L<RAND_bytes(3)>
  43. =head1 COPYRIGHT
  44. Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
  45. Licensed under the OpenSSL license (the "License"). You may not use
  46. this file except in compliance with the License. You can obtain a copy
  47. in the file LICENSE in the source distribution or at
  48. L<https://www.openssl.org/source/license.html>.
  49. =cut