MDL-35332: Use fast hash when generating hashes during tests
authorSimon Coggins <simon.coggins@totaralms.com>
Mon, 11 Feb 2013 08:38:07 +0000 (21:38 +1300)
committerSimon Coggins <simon.coggins@totaralms.com>
Mon, 11 Feb 2013 08:38:07 +0000 (21:38 +1300)
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['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();