X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Flibs%2FCryptRand.php;h=da0cae250d9edfbc359710be9c0ce5053fdce807;hb=a646727f83ec107963dbe859600b6d44e1d2c42b;hp=a1bbd099c4bb4837cf9615f02f217f372b37560a;hpb=925c20a9ca669c67cc44f4468d0e0f3b33b94213;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/CryptRand.php b/includes/libs/CryptRand.php index a1bbd099c4..da0cae250d 100644 --- a/includes/libs/CryptRand.php +++ b/includes/libs/CryptRand.php @@ -46,6 +46,7 @@ class CryptRand { * @return string */ protected function initialRandomState() { + wfDeprecated( __METHOD__, '1.32' ); return ''; } @@ -59,6 +60,7 @@ class CryptRand { * @author Tim Starling */ protected function driftHash( $data ) { + wfDeprecated( __METHOD__, '1.32' ); return ''; } @@ -70,6 +72,7 @@ class CryptRand { * @return string A new weak random state */ protected function randomState() { + wfDeprecated( __METHOD__, '1.32' ); return ''; } @@ -83,6 +86,7 @@ class CryptRand { * @return bool Always true */ public function wasStrong() { + wfDeprecated( __METHOD__, '1.32' ); return true; } @@ -96,6 +100,7 @@ class CryptRand { * @return string Raw binary random data */ public function generate( $bytes ) { + wfDeprecated( __METHOD__, '1.32' ); $bytes = floor( $bytes ); return random_bytes( $bytes ); } @@ -108,6 +113,7 @@ class CryptRand { * @return string Hexadecimal random data */ public function generateHex( $chars ) { + wfDeprecated( __METHOD__, '1.32' ); return MWCryptRand::generateHex( $chars ); } }