Issue Bug Closed

#24440Improve the used random generators on *nix platforms

Steffen Gebert 12/29/10, 20:02 updated 10/02/18, 12:21

Description

t3lib_div::generateRandomBytes() tries to access /dev/urandom and if it fails, it plays itself with randomness.

For windows operating systems, besids COM, also mcrypt_create_iv() and openssl_random_pseudo_bytes() are checked for availability.

In case of a restrictive open_basedir setting, this causes TYPO3 to decrease performance by not using builtin functions.
The code block should IMHO just be moved out of the } elseif (TYPO3_OS == ‘WIN’) { clause.

(issue imported from #M16874)

Reviews 1