diff --git a/classes/mutex/RedisMutex.php b/classes/mutex/RedisMutex.php index 317b2580..6732ce54 100644 --- a/classes/mutex/RedisMutex.php +++ b/classes/mutex/RedisMutex.php @@ -76,7 +76,7 @@ protected function acquire(string $key, int $expire): bool // 2. $acquired = 0; $errored = 0; - $this->token = random_bytes(16); + $this->token = bin2hex(random_bytes(16)); $exception = null; foreach ($this->redisAPIs as $index => $redisAPI) { try {