diff --git a/core/lib/Drupal/Core/Render/Renderer.php b/core/lib/Drupal/Core/Render/Renderer.php
index 11d1cb4..2067de7 100644
--- a/core/lib/Drupal/Core/Render/Renderer.php
+++ b/core/lib/Drupal/Core/Render/Renderer.php
@@ -707,7 +707,7 @@ protected function createPlaceholder(array $element) {
$attributes = new Attribute();
$attributes['callback'] = $placeholder_render_array['#lazy_builder'][0];
$attributes['arguments'] = UrlHelper::buildQuery($placeholder_render_array['#lazy_builder'][1]);
- $attributes['token'] = hash('crc32', serialize($placeholder_render_array));
+ $attributes['token'] = hash('crc32b', serialize($placeholder_render_array));
$placeholder_markup = SafeMarkup::format('', ['@attributes' => $attributes]);
// Build the placeholder element to return.
diff --git a/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php b/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php
index 210e7e0..43d3fe3 100644
--- a/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php
+++ b/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php
@@ -68,7 +68,7 @@ public function providerPlaceholders() {
if (is_array($cache_keys)) {
$token_render_array['#cache']['keys'] = $cache_keys;
}
- $token = hash('crc32', serialize($token_render_array));
+ $token = hash('crc32b', serialize($token_render_array));
return SafeMarkup::format('', [
'@callback' => 'Drupal\Tests\Core\Render\PlaceholdersTest::callback',
'@arguments' => '0=' . $args[0],
@@ -440,7 +440,7 @@ public function testCacheableParent($test_element, $args, array $expected_placeh
$this->setUpRequest('GET');
- $token = hash('crc32', serialize($expected_placeholder_render_array));
+ $token = hash('crc32b', serialize($expected_placeholder_render_array));
$expected_placeholder_markup = '';
$this->assertSame($expected_placeholder_markup, Html::normalize($expected_placeholder_markup), 'Placeholder unaltered by Html::normalize() which is used by FilterHtmlCorrector.');