[Deprecated] Function mcrypt_create_iv() is deprecated

GET /kontakt/

Line 25 in /nfsmnt/hosting1_1/4/6/4646e84f-37f9-4f86-9107-8c80c5fd8c22/zivnosti.sk/web/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

Kontakt » Založenie Živnosti.sk

Kontakt

Bratislava

Miletičova 1, 821 01 Bratislava, Slovenská republika

Telefón: 02 55 56 77 73
Telefón (zo zahraničia): 00421 2 55 56 77 73

IČO: 46488995
DIČ: 2820015759

Email: info@firmaren.sk

Trnava

Priemyselná 1