From a80a36f4ed204d67e498011e14c4ded6aca3bd77 Mon Sep 17 00:00:00 2001 From: matthieu Date: Sat, 12 Jan 2008 14:20:27 +0000 Subject: [PATCH] On OpenBSD use 'openssl rand 16 -hex' to generate the cookie. This avoids the quoting hell needed for 'dd /dev/arandom | hexdump' that confuses cpp from gcc 2.95. --- app/xinit/configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/xinit/configure.ac b/app/xinit/configure.ac index 8ad3d8b56..7eded9f43 100644 --- a/app/xinit/configure.ac +++ b/app/xinit/configure.ac @@ -120,7 +120,7 @@ AC_PATH_PROGS(MCOOKIE, [mcookie], [$MCOOKIE], case $host_os in *openbsd*) - MCOOKIE='dd if=/dev/arandom bs=16 count=1 2>/dev/null | hexdump -e \\\"%08x\\\"' + MCOOKIE='openssl rand -hex 16' ;; esac