Do not pass unused parameter
authorJakub Vrana <jakub@vrana.cz>
Sat, 1 Dec 2018 17:08:56 +0000 (18:08 +0100)
committerJakub Vrana <jakub@vrana.cz>
Sat, 1 Dec 2018 17:08:56 +0000 (18:08 +0100)
Found by PHPStan.

Change-Id: I6c33aa29af02b7a5ca01e2e20103e4a873cb722a

includes/utils/UIDGenerator.php

index 11cc21f..15c0cf9 100644 (file)
@@ -74,7 +74,7 @@ class UIDGenerator {
                        }
                        Wikimedia\restoreWarnings();
                        if ( !preg_match( '/^[0-9a-f]{12}$/i', $nodeId ) ) {
-                               $nodeId = MWCryptRand::generateHex( 12, true );
+                               $nodeId = MWCryptRand::generateHex( 12 );
                                $nodeId[1] = dechex( hexdec( $nodeId[1] ) | 0x1 ); // set multicast bit
                        }
                        file_put_contents( $this->nodeIdFile, $nodeId ); // cache