https://www.mediawiki.org/wiki/Special:Code/MediaWiki/114270
Revision: 114270
Author: reedy
Date: 2012-03-20 14:16:46 +0000 (Tue, 20 Mar 2012)
Log Message:
-----------
Followup r114233, define the method static variables to be used
Modified Paths:
--------------
trunk/phase3/includes/CryptRand.php
Modified: trunk/phase3/includes/CryptRand.php
===================================================================
--- trunk/phase3/includes/CryptRand.php 2012-03-20 14:11:00 UTC (rev 114269)
+++ trunk/phase3/includes/CryptRand.php 2012-03-20 14:16:46 UTC (rev 114270)
@@ -187,6 +187,7 @@
* @return String A hash algorithm
*/
protected function hashAlgo() {
+ static $algo;
if ( !is_null( $algo ) ) {
return $algo;
}
@@ -217,6 +218,7 @@
* @return int Number of bytes the hash outputs
*/
protected function hashLength() {
+ static $hashLength;
if ( is_null( $hashLength ) ) {
$hashLength = strlen( $this->hash( '' ) );
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs