fix nasty error due to /dev/random exhaustion
[lhc/web/wiklou.git] / config / index.php
index 991e0e3..2a6567b 100644 (file)
@@ -478,6 +478,8 @@ if( $conf->posted && ( 0 == count( $errs ) ) ) {
                        do_objectcache_update(); flush();
                        do_categorylinks_update(); flush();
                        do_image_name_unique_update(); flush();
+                       do_logging_update(); flush();
+                       do_user_rights_update(); flush();
 
                        if ( isTemplateInitialised() ) {
                                print "Template namespace already initialised\n";
@@ -789,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 );