Security update to Drupal 8.4.6
[yaffs-website] / vendor / twig / twig / lib / Twig / Profiler / NodeVisitor / Profiler.php
index a395ae7fda19ae02d7ee575d677fe32e2d266d9a..5db41fea756d16ff2fc31221e3113d03e91832fd 100644 (file)
@@ -55,7 +55,7 @@ class Twig_Profiler_NodeVisitor_Profiler extends Twig_BaseNodeVisitor
 
     private function getVarName()
     {
-        return sprintf('__internal_%s', hash('sha256', uniqid(mt_rand(), true), false));
+        return sprintf('__internal_%s', hash('sha256', $this->extensionName));
     }
 
     public function getPriority()