bugfix
This commit is contained in:
parent
6c8c969b67
commit
27ab390ea0
|
@ -292,7 +292,7 @@ class MeshAPI(object):
|
||||||
str: The generated internal message ID.
|
str: The generated internal message ID.
|
||||||
"""
|
"""
|
||||||
random_data = str(random.random()).encode()
|
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)
|
hash_object = hashlib.md5(hash_input)
|
||||||
return hash_object.hexdigest()[:10]
|
return hash_object.hexdigest()[:10]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user