[Deprecated] Function mcrypt_create_iv() is deprecated

GET /index.php/join/

Line 25 in /opt/bitnami/apps/mahonri.com/html/framework/security/RandomGenerator.php

Source

16 	 * 
17 	 * @return string Returns a random series of bytes
18 	 */
19 	public function generateEntropy() {
20 		$isWin = preg_match('/WIN/', PHP_OS);
21 		
22 		// TODO Fails with "Could not gather sufficient random data" on IIS, temporarily disabled on windows
23 		if(!$isWin) {
24 			if(function_exists('mcrypt_create_iv')) {
25 				$e = mcrypt_create_iv(64, MCRYPT_DEV_URANDOM);
26 				if($e !== false) return $e;
27 			}
28 		}
29 
30 		// Fall back to SSL methods - may slow down execution by a few ms
31 		if (function_exists('openssl_random_pseudo_bytes')) {

Trace

Join