From 27ab390ea083aff4fc9c7cd063c327cc8ace7abe Mon Sep 17 00:00:00 2001 From: Andrea Santaniello Date: Wed, 8 May 2024 17:52:14 +0200 Subject: [PATCH] bugfix --- meshttpd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshttpd.py b/meshttpd.py index 70e7488..9d4a5ae 100644 --- a/meshttpd.py +++ b/meshttpd.py @@ -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]