We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b7b258 commit ffcb861Copy full SHA for ffcb861
src/Puphpet/MainBundle/Twig/BaseExtension.php
@@ -29,14 +29,13 @@ public function getFilters()
29
];
30
}
31
32
- public function uniqid()
+ public function uniqid($prefix)
33
{
34
$random = $this->randomLib->getLowStrengthGenerator();
35
36
- $characters = '0123456789abcdefghijklmnopqrstuvwxyz' .
37
- 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
+ $characters = '0123456789abcdefghijklmnopqrstuvwxyz';
38
39
- return $random->generateString(12, $characters);
+ return $prefix . $random->generateString(12, $characters);
40
41
42
public function mt_rand($min, $max)
0 commit comments