summaryrefslogtreecommitdiff
path: root/app/xinit
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2007-09-28 20:12:19 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2007-09-28 20:12:19 +0000
commit5ca3fe3dddeebd034a6340b4720150597409629a (patch)
tree43b00190cfb1f0baef2de4059ddb0d52aac3f86d /app/xinit
parent832721383c27963a8aaff36988cb06d7962a1330 (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.cpp2
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