diff --git a/src/include/components/class-wc-retailcrm-logger.php b/src/include/components/class-wc-retailcrm-logger.php index d1104a1..2521224 100644 --- a/src/include/components/class-wc-retailcrm-logger.php +++ b/src/include/components/class-wc-retailcrm-logger.php @@ -98,7 +98,7 @@ if (!class_exists('WC_Retailcrm_Logger') && class_exists('WC_Log_Levels')) : private static function getIdentifier(): string { if (empty(static::$logIdentifier)) { - static::$logIdentifier = substr(uniqid('', false), -8); + static::$logIdentifier = substr(wp_generate_uuid4(), 0, 8); } return static::$logIdentifier;