diff options
author | Sami Kerola | 2014-03-08 22:43:30 +0100 |
---|---|---|
committer | Karel Zak | 2014-03-26 12:08:57 +0100 |
commit | f7bac5731bf559216aa2f0e8be1d7f477e7cf41a (patch) | |
tree | 010c73584379c981852b0e85c47b6a2f6b6a2e9f /misc-utils/mcookie.1 | |
parent | mcookie: use control structure, and fix usage() (diff) | |
download | kernel-qcow2-util-linux-f7bac5731bf559216aa2f0e8be1d7f477e7cf41a.tar.gz kernel-qcow2-util-linux-f7bac5731bf559216aa2f0e8be1d7f477e7cf41a.tar.xz kernel-qcow2-util-linux-f7bac5731bf559216aa2f0e8be1d7f477e7cf41a.zip |
mcookie: add --max-size option
Just in case someone wants to add entropy from device with invocation
demonstrated below.
$ mcookie --file /dev/urandom --max-size 64k
[kzak@redhat.com: - use all-io.h]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/mcookie.1')
-rw-r--r-- | misc-utils/mcookie.1 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/misc-utils/mcookie.1 b/misc-utils/mcookie.1 index b974ff0f9..989b7f9b9 100644 --- a/misc-utils/mcookie.1 +++ b/misc-utils/mcookie.1 @@ -27,6 +27,21 @@ in this preference order. Use additional file as a macig cookie random seed. When file is defined as '-' character input is read from stdin. .TP +\fB\-m\fR, \fB\-\-max\-size\fR=\fInumber\fR +Read form +.I FILE +only +.I number +of bytes. This option is meant to be used when reading additional +randomness from a device. +.IP +The +.I number +argument may be followed by the multiplicative suffixes KiB=1024, +MiB=1024*1024, and so on for GiB, TiB, PiB, EiB, ZiB and YiB (the "iB" is +optional, e.g., "K" has the same meaning as "KiB") or the suffixes +KB=1000, MB=1000*1000, and so on for GB, TB, PB, EB, ZB and YB. +.TP \fB\-v\fR, \fB\-\-verbose\fR Inform where randomness originated, with amount of entropy read from each source. |