The GNU Privacy Guard manual pages have this to say about using the gpg --gen-random 0|1|2 count
command:
Emit count random bytes of the given quality level 0, 1 or 2. If count is not given or zero, an endless sequence of random bytes will be emitted. If used with
--armor
the output will be base64 encoded. PLEASE, don’t use this command unless you know what you are doing; it may remove precious entropy from the system!
I am wondering what the "quality level" means. Is 2 "better" (i.e. more random) than 0? How much "more random" is one level over another?
BACKGROUND:
I came across this command in an article in Linux Journal that illustrated using gpg
's --gen-random
command to generate a random password. I want to have as random of a password as possible, so I want to know what "quality level" is best for this purpose.
dd if=/dev/urandom bs=1 count=n
where n is the number of bytes you would like.) – sneak Nov 25 '15 at 09:42