From: Jens Frank Date: Mon, 30 Aug 2004 20:23:36 +0000 (+0000) Subject: fix nasty error due to /dev/random exhaustion X-Git-Tag: 1.5.0alpha1~2196 X-Git-Url: http://git.cyclocoop.org/%22.%24match%5B1%5D.%22?a=commitdiff_plain;h=fc516cf79af35851a64c421472621ae3387e085b;p=lhc%2Fweb%2Fwiklou.git fix nasty error due to /dev/random exhaustion --- diff --git a/config/index.php b/config/index.php index 0f6f2352e7..2a6567bca6 100644 --- a/config/index.php +++ b/config/index.php @@ -791,7 +791,7 @@ function writeLocalSettings( $conf ) { $ugly = ($conf->prettyURLs ? "# " : ""); $rights = ($conf->RightsUrl) ? "" : "# "; - $file = @fopen( "/dev/random", "r" ); + $file = @fopen( "/dev/urandom", "r" ); if ( $file ) { $proxyKey = bin2hex( fread( $file, 32 ) ); fclose( $file );