Issue Bug Closed

#24410Parameter for function "mcrypt_create_iv" not correct

Wim Roukema 12/24/10, 18:59 updated 10/02/18, 12:21

Description

In a Windows environment the parameter “MCRYPT_DEV_URANDOM” is unknown. This parameter is defined in class.t3lib_div.php on line 1679.

The problem is solved by changing the parameter to: MCRYPT_RAND.

Complete statement:
$output = mcrypt_create_iv($count, MCRYPT_DEV_URANDOM);
changed to
$output = mcrypt_create_iv($count, MCRYPT_RAND);

(issue imported from #M16837)

Reviews 1