MDL-47295 libraries: Re-apply removal of random seed initialisation

See MDL-41198.
This commit is contained in:
Frederic Massart 2014-09-26 10:33:39 +08:00
parent 6000b797ab
commit a3634cc382
2 changed files with 3 additions and 2 deletions

View file

@ -174,7 +174,8 @@ if (!defined('_ADODB_LAYER')) {
// Initialize random number generator for randomizing cache flushes // Initialize random number generator for randomizing cache flushes
// -- note Since PHP 4.2.0, the seed becomes optional and defaults to a random value if omitted. // -- note Since PHP 4.2.0, the seed becomes optional and defaults to a random value if omitted.
srand(((double)microtime())*1000000); // MDL-41198 Removed random seed initialization.
// srand(((double)microtime())*1000000);
/** /**
* ADODB version as a string. * ADODB version as a string.

View file

@ -21,6 +21,6 @@ Added:
* readme_moodle.txt - this file ;-) * readme_moodle.txt - this file ;-)
Our changes: Our changes:
* Removed random seed initialization from lib/adodb/adodb.inc.php:177 * Removed random seed initialization from lib/adodb/adodb.inc.php:177 (see 038f546 and MDL-41198).
skodak, iarenaza, moodler, stronk7 skodak, iarenaza, moodler, stronk7