diff --git a/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php b/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php
index 8e452d5f283dee9a3459d4c76303414f581f212b..441c2439ece5ade3a24ce871e66ab10bc19fab18 100644
--- a/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php
+++ b/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php
@@ -1093,6 +1093,12 @@ private function prepareEnvironment() {
     drupal_valid_test_ua($this->databasePrefix);
     conf_path(FALSE, TRUE);
 
+    // Reset settings.
+    new Settings(array(
+      // For performance, simply use the database prefix as hash salt.
+      'hash_salt' => $this->databasePrefix,
+    ));
+
     drupal_set_time_limit($this->timeLimit);
   }