openssl-rand.pod.in 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. =pod
  2. {- OpenSSL::safe::output_do_not_edit_headers(); -}
  3. =head1 NAME
  4. openssl-rand - generate pseudo-random bytes
  5. =head1 SYNOPSIS
  6. B<openssl rand>
  7. [B<-help>]
  8. [B<-out> I<file>]
  9. [B<-base64>]
  10. [B<-hex>]
  11. {- $OpenSSL::safe::opt_engine_synopsis -}
  12. {- $OpenSSL::safe::opt_r_synopsis -}
  13. I<num>
  14. =for openssl ifdef engine
  15. =head1 DESCRIPTION
  16. This command outputs I<num> pseudo-random bytes after seeding
  17. the random number generator once.
  18. =head1 OPTIONS
  19. =over 4
  20. =item B<-help>
  21. Print out a usage message.
  22. =item B<-out> I<file>
  23. Write to I<file> instead of standard output.
  24. =item B<-base64>
  25. Perform base64 encoding on the output.
  26. =item B<-hex>
  27. Show the output as a hex string.
  28. {- $OpenSSL::safe::opt_engine_item -}
  29. {- $OpenSSL::safe::opt_r_item -}
  30. =back
  31. =head1 SEE ALSO
  32. L<openssl(1)>,
  33. L<RAND_bytes(3)>
  34. =head1 COPYRIGHT
  35. Copyright 2000-2019 The OpenSSL Project Authors. All Rights Reserved.
  36. Licensed under the Apache License 2.0 (the "License"). You may not use
  37. this file except in compliance with the License. You can obtain a copy
  38. in the file LICENSE in the source distribution or at
  39. L<https://www.openssl.org/source/license.html>.
  40. =cut