Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 5c4ffeb883fba422d749884c1052287294254a3f 1 parent ec2d8ce
@simoncoggins simoncoggins authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/testing/generator/data_generator.php
View
3  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();
Please sign in to comment.
Something went wrong with that request. Please try again.