From 5c4ffeb883fba422d749884c1052287294254a3f Mon Sep 17 00:00:00 2001 From: Simon Coggins Date: Mon, 11 Feb 2013 21:38:07 +1300 Subject: [PATCH] MDL-35332: Use fast hash when generating hashes during tests --- lib/testing/generator/data_generator.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/testing/generator/data_generator.php b/lib/testing/generator/data_generator.php index 7ab11b18e6a..0afeb63ed08 100644 --- a/lib/testing/generator/data_generator.php +++ b/lib/testing/generator/data_generator.php @@ -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();