From 230cd676a8b14346089c35ce25e0d27278e58165 Mon Sep 17 00:00:00 2001 From: Alexander Kellner Date: Fri, 8 Nov 2024 14:18:01 +0100 Subject: [PATCH] [TASK] Small code cleanup --- Classes/Domain/Factory/VisitorFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Domain/Factory/VisitorFactory.php b/Classes/Domain/Factory/VisitorFactory.php index 9b6f76df..5313d5c1 100644 --- a/Classes/Domain/Factory/VisitorFactory.php +++ b/Classes/Domain/Factory/VisitorFactory.php @@ -50,7 +50,7 @@ public function __construct(string $identificator, bool $tempVisitor = false) { $this->checkIdentificator($identificator); if ($identificator === '' && $tempVisitor === true) { - $identificator = StringUtility::getRandomString(32, false); + $identificator = StringUtility::getRandomString(Fingerprint::IDENTIFICATOR_LENGTH_FINGERPRINT, false); } $this->fingerprint = GeneralUtility::makeInstance(Fingerprint::class) ->setValue($identificator)