[TYPO3-core] RFC #9852: Feature: Provide a random byte generator in TYPO3 Core
Martin Kutschker
masi-no at spam-typo3.org
Fri Nov 28 11:20:57 CET 2008
Dmitry Dulepov schrieb:
>
> Additionally there should be extra pair of ( and ) because Zend
> Studio complains about assignment in condition.
>
> + while (!isset($output{$count - 1})) {
> + $random_state = md5(microtime() . mt_rand() . $random_state);
> + $output .= md5(mt_rand() . $random_state, true);
> + }
This could be the else-clause of the if-statement. Or is it meant to be
a fallback in case the fread failed or did not returned the number of
bytes requested? If so it should be documented.
Sidenote: is mt_rand() always available?
Masi
More information about the TYPO3-team-core
mailing list