fix nasty error due to /dev/random exhaustion
authorJens Frank <jeluf@users.mediawiki.org>
Mon, 30 Aug 2004 20:23:36 +0000 (20:23 +0000)
committerJens Frank <jeluf@users.mediawiki.org>
Mon, 30 Aug 2004 20:23:36 +0000 (20:23 +0000)
config/index.php

index 0f6f235..2a6567b 100644 (file)
@@ -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 );