[fix] Small bandit changes (#3241)

This commit is contained in:
Vlad Stan
2025-07-15 11:14:20 +02:00
committed by dni ⚡
parent 0529ee2835
commit e0749e186e
16 changed files with 125 additions and 34 deletions
+1 -1
View File
@@ -390,7 +390,7 @@ class NWCConnection:
n = max_length - len(subid)
if n > 0:
for _ in range(n):
subid += chars[random.randint(0, len(chars) - 1)]
subid += chars[random.randint(0, len(chars) - 1)] # noqa: S311
return subid
async def _close_subscription_by_subid(