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 | |
| 14 | rng [devnum [n]] |
| 15 | |
| 16 | Description |
| 17 | ----------- |
| 18 | |
| 19 | The *rng* command reads the random number generator(RNG) device and |
| 20 | prints the random bytes read on the console. A maximum of 64 bytes can |
| 21 | be read in one invocation of the command. |
| 22 | |
| 23 | devnum |
| 24 | The RNG device from which the random bytes are to be |
| 25 | read. Defaults to 0. |
| 26 | |
| 27 | n |
| 28 | Number of random bytes to be read and displayed on the |
| 29 | console. Default value is 0x40. Max value is 0x40. |