From 970922a24e11a899f00da3fd375f34822f71effd Mon Sep 17 00:00:00 2001 From: AHReccese Date: Wed, 24 Jan 2024 22:55:55 +0330 Subject: [PATCH] remove `util.py` and add inner functionalities to `reserver_func.py` --- reserver/util.py | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 reserver/util.py diff --git a/reserver/util.py b/reserver/util.py deleted file mode 100644 index 9d8211f..0000000 --- a/reserver/util.py +++ /dev/null @@ -1,14 +0,0 @@ -# -*- coding: utf-8 -*- -"""Utility functions.""" - -from hashlib import sha256 -from time import time - - -def get_random_name(): - """ - Generate a random str based on current timestamp. - - :return: str - """ - return sha256(str(time()).encode("utf-8")).hexdigest()