Sughosh Ganu | 3b18ce6 | 2022-07-22 21:32:08 +0530 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0+ |
| 2 | |
| 3 | rng command |
| 4 | =========== |
| 5 | |
| 6 | Synopsis |
| 7 | -------- |
| 8 | |
| 9 | :: |
| 10 | |
| 11 | rng [devnum [n]] |
| 12 | |
| 13 | Description |
| 14 | ----------- |
| 15 | |
| 16 | The *rng* command reads the random number generator(RNG) device and |
| 17 | prints the random bytes read on the console. A maximum of 64 bytes can |
| 18 | be read in one invocation of the command. |
| 19 | |
| 20 | devnum |
| 21 | The RNG device from which the random bytes are to be |
| 22 | read. Defaults to 0. |
| 23 | |
| 24 | n |
| 25 | Number of random bytes to be read and displayed on the |
| 26 | console. Default value is 0x40. Max value is 0x40. |