diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2007-09-28 20:12:19 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2007-09-28 20:12:19 +0000 |
commit | 5ca3fe3dddeebd034a6340b4720150597409629a (patch) | |
tree | 43b00190cfb1f0baef2de4059ddb0d52aac3f86d /app/xinit | |
parent | 832721383c27963a8aaff36988cb06d7962a1330 (diff) |
use /dev/arandom to generate the cookie. Problem noticed
by Joerg Sonnenberger. Thanks.
Diffstat (limited to 'app/xinit')
-rw-r--r-- | app/xinit/startx.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/xinit/startx.cpp b/app/xinit/startx.cpp index a9b4199e7..c578d2ba4 100644 --- a/app/xinit/startx.cpp +++ b/app/xinit/startx.cpp @@ -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 |