[BUGFIX] Always use MCRYPT_DEV_URANDOM if using mcrypt 51/40251/4
authorHelmut Hummel <helmut.hummel@typo3.org>
Mon, 15 Jun 2015 14:00:27 +0000 (16:00 +0200)
committerHelmut Hummel <helmut.hummel@typo3.org>
Mon, 15 Jun 2015 16:22:32 +0000 (18:22 +0200)
commit57b9b409bb66e9d10ded1147df904e2c2b69de4f
treef41328697f76ed52b4b1f9d82cd125763af98e2a
parent436461fb251f029e59621165bf168147d8844572
[BUGFIX] Always use MCRYPT_DEV_URANDOM if using mcrypt

Using MCRYPT_RAND was introduced because of a bug in PHP versions lower
than 5.3.7 on Windows in combination with IIS.

Since we require higher PHP versions in all maintained versions we can
remove this workaround and use MCRYPT_DEV_URANDOM again. By doing so we
fix a bug on Windows caused by not enough randomness.

Releases: 6.2, master
Resolves: #53034
Change-Id: Ibe74eb0277934e9300ffd9b00cc89a5f8bb008fb
Reviewed-on: http://review.typo3.org/40251
Reviewed-by: Stephan GroƟberndt <stephan@grossberndt.de>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Classes/Utility/GeneralUtility.php