From d175c9cff1ad7b4edafc9036981c57ca46037a98 Mon Sep 17 00:00:00 2001 From: dj Date: Sat, 11 May 2024 23:30:01 +0300 Subject: [PATCH] Update --- tgbot/utils/const_functions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tgbot/utils/const_functions.py b/tgbot/utils/const_functions.py index ecf21aa..1492651 100644 --- a/tgbot/utils/const_functions.py +++ b/tgbot/utils/const_functions.py @@ -198,8 +198,9 @@ def convert_date(from_time, full=True, second=True) -> Union[str, int]: def gen_id(len_id: int = 16) -> int: mac_address = uuid.getnode() time_unix = int(str(time.time_ns())[:len_id]) + random_int = int(''.join(random.choices('0123456789', k=len_id))) - return mac_address + time_unix + return mac_address + time_unix + random_int # Генерация пароля | default, number, letter, onechar