This commit is contained in:
Andrea Santaniello 2024-05-08 17:52:14 +02:00
parent 6c8c969b67
commit 27ab390ea0

View File

@ -292,7 +292,7 @@ class MeshAPI(object):
str: The generated internal message ID.
"""
random_data = str(random.random()).encode()
hash_input = random_data + node_id.encode() + message.encode()
hash_input = random_data + str(node_id).encode() + message.encode()
hash_object = hashlib.md5(hash_input)
return hash_object.hexdigest()[:10]