Skip to content

Commit

Permalink
MDL-35332: Use fast hash when generating hashes during tests
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncoggins committed Feb 11, 2013
1 parent ec2d8ce commit 5c4ffeb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/testing/generator/data_generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5c4ffeb

Please sign in to comment.