c32b10242e86dd0f1c1da7b52a4f0790467cca32
[openssl.git] / doc / man1 / openssl-rand.pod
1 =pod
2
3 =head1 NAME
4
5 openssl-rand - generate pseudo-random bytes
6
7 =head1 SYNOPSIS
8
9 B<openssl rand>
10 [B<-help>]
11 [B<-out> I<file>]
12 [B<-rand> I<files>]
13 [B<-writerand> I<file>]
14 [B<-base64>]
15 [B<-hex>]
16 I<num>
17
18 =for openssl ifdef engine
19
20 =head1 DESCRIPTION
21
22 This command outputs I<num> pseudo-random bytes after seeding
23 the random number generator once.
24
25 =head1 OPTIONS
26
27 =over 4
28
29 =item B<-help>
30
31 Print out a usage message.
32
33 =item B<-out> I<file>
34
35 Write to I<file> instead of standard output.
36
37 =item B<-rand> I<files>, B<-writerand> I<file>
38
39 See L<openssl(1)/Random State Options> for more information.
40
41 =item B<-base64>
42
43 Perform base64 encoding on the output.
44
45 =item B<-hex>
46
47 Show the output as a hex string.
48
49 =back
50
51 =head1 SEE ALSO
52
53 L<openssl(1)>,
54 L<RAND_bytes(3)>
55
56 =head1 COPYRIGHT
57
58 Copyright 2000-2019 The OpenSSL Project Authors. All Rights Reserved.
59
60 Licensed under the Apache License 2.0 (the "License").  You may not use
61 this file except in compliance with the License.  You can obtain a copy
62 in the file LICENSE in the source distribution or at
63 L<https://www.openssl.org/source/license.html>.
64
65 =cut