MDL-35332: Use fast hash when generating hashes during tests
[moodle.git] / lib / testing / generator / data_generator.php
index 7ab11b1..0afeb63 100644 (file)
@@ -204,7 +204,8 @@ EOD;
         $record['timemodified'] = $record['timecreated'];
         $record['lastip'] = '0.0.0.0';
 
         $record['timemodified'] = $record['timecreated'];
         $record['lastip'] = '0.0.0.0';
 
-        $record['password'] = hash_internal_user_password($record['password']);
+        // Use fast hash during testing.
+        $record['password'] = hash_internal_user_password($record['password'], true);
 
         if ($record['deleted']) {
             $delname = $record['email'].'.'.time();
 
         if ($record['deleted']) {
             $delname = $record['email'].'.'.time();