diff -u b/core/lib/Drupal/Component/Utility/Crypt.php b/core/lib/Drupal/Component/Utility/Crypt.php --- b/core/lib/Drupal/Component/Utility/Crypt.php +++ b/core/lib/Drupal/Component/Utility/Crypt.php @@ -53,7 +53,7 @@ $random_state .= getmypid(); } $bytes = ''; - // Ensure mt_rand() is reseeded on every page load. + // Ensure mt_rand() is reseeded before calling it the first time. mt_srand(); } diff -u b/core/tests/Drupal/Tests/Component/Utility/CryptRandomFallbackTest.php b/core/tests/Drupal/Tests/Component/Utility/CryptRandomFallbackTest.php --- b/core/tests/Drupal/Tests/Component/Utility/CryptRandomFallbackTest.php +++ b/core/tests/Drupal/Tests/Component/Utility/CryptRandomFallbackTest.php @@ -69 +69,2 @@ -} \ No newline at end of file +} +