openssl rand

generate pseudo-random bytes 

openssl command


SYNOPSIS

openssl rand [-help] [-out file] [-base64] [-hex] [-engine id] [-rand file(s)] [-writerand file] [-provider name] [-provider-path path] [-propquery propq] num


DESCRIPTION

The rand command outputs num pseudo-random bytes after seeding the random number generator once. As in other openssl command line tools, PRNG seeding uses the file $HOME/.rnd or .rnd in addition to the files given in the -rand option. A new $HOME/.rnd or .rnd file will be written back if enough seeding was obtained from these sources.


OPTIONS

-help 

Print out a usage message.

-out file 

Writes to file instead of standard output.

-base64 

performs base64 encoding on the output.

-hex 

Show the output as a hex string.

-engine id 

See Engine Options in openssl for details. This option is deprecated.

-rand files 
-writerand file 

See Random State Options in openssl for details.

-provider name 
-provider-path path 
-propquery propq 

See Provider Options in openssl for details.


COPYRIGHT

Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.

Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or here: OpenSSL.


AVAILABILITY

PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


PTC MKS Toolkit 10.5 Documentation Build 40.