clean mapper comments

This commit is contained in:
qananasikq
2026-04-15 21:58:03 +03:00
parent 6165c65159
commit 37d01c4ba1

View File

@@ -379,7 +379,7 @@ class CarMapper:
digest = hashlib.sha256(origin_id.encode()).digest()
alphabet = cls._PARSER_ID_ALPHABET
base = len(alphabet)
num = int.from_bytes(digest[:17], "big") # 17 bytes = 136 bits, enough for 22 chars
num = int.from_bytes(digest[:17], "big") # 17 байт = 136 бит, хватает на 22 символа
chars: list[str] = []
for _ in range(22):
num, idx = divmod(num, base)