using /dev/random as a better source of entropy for key generation

This commit is contained in:
Jaromil 2011-02-08 11:00:09 +01:00
parent 246db46140
commit b72a6448a9

View File

@ -354,7 +354,7 @@ create_tomb() {
act "once done you will be asked to choose a password for your tomb."
touch ${keytmp}/tomb.tmp
chmod 0600 ${keytmp}/tomb.tmp
$DD bs=1 count=256 if=/dev/urandom of=${keytmp}/tomb.tmp
$DD bs=1 count=256 if=/dev/random of=${keytmp}/tomb.tmp
if ! [ -r ${keytmp}/tomb.tmp ]; then
error "cannot generate encryption key, operation aborted."
umount ${keytmp}