We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85d5a00 commit fe2a5faCopy full SHA for fe2a5fa
redis/rwlock.py
@@ -8,7 +8,7 @@
8
from typing import Optional
9
from typing import Self
10
from typing import Type
11
-from uuid import uuid1
+from uuid import uuid4
12
13
from typing_extensions import override
14
@@ -283,7 +283,7 @@ def _writer_semaphore_name(self) -> str:
283
return f'{self.prefix}:write_semaphore'
284
285
def _make_token(self) -> Any:
286
- token = self.redis.get_encoder().encode(uuid1().hex)
+ token = self.redis.get_encoder().encode(uuid4().hex)
287
return token
288
289
def read(
0 commit comments