use /dev/arandom to generate the cookie. Problem noticed

by Joerg Sonnenberger. Thanks.
This commit is contained in:
matthieu 2007-09-28 20:12:18 +00:00
parent 7bf5786e70
commit 23feae05f5

View File

@ -188,7 +188,7 @@ authdisplay=${display:-:0}
#if defined(HAS_COOKIE_MAKER) && defined(MK_COOKIE)
mcookie=`MK_COOKIE`
#else
mcookie=`dd if=/dev/random bs=16 count=1 2>/dev/null | hexdump -e \\"%08x\\"`
mcookie=`dd if=/dev/arandom bs=16 count=1 2>/dev/null | hexdump -e \\"%08x\\"`
if test x"$mcookie" = x; then
echo "Couldn't create cookie"
exit 1