Skip to content

Commit d73a168

Browse files
javiereguiluzfabpot
authored andcommitted
Use faster hashing algorithms when possible
1 parent 71f790c commit d73a168

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

EventListener/ConsoleProfilerListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function initialize(ConsoleCommandEvent $event): void
7272
return;
7373
}
7474

75-
$request->attributes->set('_stopwatch_token', substr(hash('sha256', uniqid(mt_rand(), true)), 0, 6));
75+
$request->attributes->set('_stopwatch_token', substr(hash('xxh128', uniqid(mt_rand(), true)), 0, 6));
7676
$this->stopwatch->openSection();
7777
}
7878

Tests/DependencyInjection/FrameworkExtensionTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1693,7 +1693,7 @@ public function testCachePoolServices()
16931693
->replaceArgument(0, $expectedSeed)
16941694
->replaceArgument(1, 12),
16951695
(new ChildDefinition('cache.adapter.redis'))
1696-
->replaceArgument(0, new Reference('.cache_connection.kYdiLgf'))
1696+
->replaceArgument(0, new Reference('.cache_connection.U5HliuY'))
16971697
->replaceArgument(1, $expectedSeed)
16981698
->replaceArgument(2, 12),
16991699
],

0 commit comments

Comments
 (0)