Sughosh Ganu | 3b18ce6 | 2022-07-22 21:32:08 +0530 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0+ |
| 2 | |
Heinrich Schuchardt | 1b0c316 | 2024-01-14 14:53:13 +0100 | [diff] [blame] | 3 | .. index:: |
| 4 | single: rng (command) |
| 5 | |
Sughosh Ganu | 3b18ce6 | 2022-07-22 21:32:08 +0530 | [diff] [blame] | 6 | rng command |
| 7 | =========== |
| 8 | |
| 9 | Synopsis |
| 10 | -------- |
| 11 | |
| 12 | :: |
| 13 | |
Weizhao Ouyang | 168e947 | 2024-03-04 14:42:42 +0000 | [diff] [blame] | 14 | rng list |
| 15 | rng [dev] [n] |
Sughosh Ganu | 3b18ce6 | 2022-07-22 21:32:08 +0530 | [diff] [blame] | 16 | |
Weizhao Ouyang | 168e947 | 2024-03-04 14:42:42 +0000 | [diff] [blame] | 17 | rng list |
| 18 | -------- |
| 19 | |
| 20 | List all the probed rng devices. |
| 21 | |
| 22 | rng [dev] [n] |
| 23 | ------------- |
Sughosh Ganu | 3b18ce6 | 2022-07-22 21:32:08 +0530 | [diff] [blame] | 24 | |
| 25 | The *rng* command reads the random number generator(RNG) device and |
| 26 | prints the random bytes read on the console. A maximum of 64 bytes can |
| 27 | be read in one invocation of the command. |
| 28 | |
Weizhao Ouyang | 168e947 | 2024-03-04 14:42:42 +0000 | [diff] [blame] | 29 | dev |
Sughosh Ganu | 3b18ce6 | 2022-07-22 21:32:08 +0530 | [diff] [blame] | 30 | The RNG device from which the random bytes are to be |
| 31 | read. Defaults to 0. |
| 32 | |
| 33 | n |
| 34 | Number of random bytes to be read and displayed on the |
| 35 | console. Default value is 0x40. Max value is 0x40. |