Permalink
Browse files

MDL-35332: Use fast hash when generating hashes during tests

  • Loading branch information...
1 parent ec2d8ce commit 5c4ffeb883fba422d749884c1052287294254a3f @simoncoggins simoncoggins committed Feb 11, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/testing/generator/data_generator.php
@@ -204,7 +204,8 @@ public function create_user($record=null, array $options=null) {
$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();

0 comments on commit 5c4ffeb

Please sign in to comment.