summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2008-05-13 16:25:22 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2008-05-13 16:25:22 -0700
commitef7abe2e72074f8252f0812ab2ca05dff7e76a38 (patch)
tree5cbfc1d205e3053814c7020eb2761a0f8bac03aa /configure.ac
parente0e89545db1fc08ffe49b2b24455bb30137da671 (diff)
Use od on /dev/random to generate cookie on Solaris
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index b476c1c..5ad468b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -144,6 +144,9 @@ case $host_os in
*openbsd*)
MCOOKIE='/usr/sbin/openssl rand -hex 16'
;;
+ *solaris*)
+ MCOOKIE="/usr/bin/od -X -A n -N 16 /dev/urandom | /usr/bin/tr -d ' '"
+ ;;
esac
if test "x$MCOOKIE" != x ; then