139
Command reference
New command: fips rng random size filename
Use fips rng random size filename to generate a random number and save it to a file.
Syntax
fips rng random size random-size filename filename
Views
Probe view
Predefined user roles
network-admin
Parameters
random-size: Specifies the random number size in the range of 1 to 1000000 bytes.
filename: Specifies the name of the file to save the random number. The file name is a
case-insensitive string.
Usage guidelines
Use this command in FIPS mode to generate a random number and save it to a file.
Examples
# Generate a 100000-byte random number and save it to a file named out.bin.
<Sysname> system-view
[Sysname-probe] fips rng random size 100000 filename out.bin
Generating random number. Please wait...
Random number saved to file successfully.
New command: fips rng random size round rate-statistics
Use fips rng random size round rate-statistics to calculate the average rate at which random
numbers are generated.
Syntax
fips rng random size random-size round round rate-statistics
Views
Probe view
Predefined user roles
network-admin
Parameters
random-size: Specifies the random number size in the range of 1 to 1000000 bytes.