<?php
declare(strict_types=1);

namespace PpPhp\Core\Platform\Event\Worker;

final class WorkerIdentifier
{
    public static function next(string $prefix = 'worker'): string
    {
        return $prefix . '_' . str_replace('.', '', uniqid('', true)) . '_' . bin2hex(random_bytes(4));
    }
}
