mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-06-16 09:29:44 -07:00
Random hash length from truncated hash length
This commit is contained in:
+1
-1
@@ -180,7 +180,7 @@ class Identity:
|
||||
:param data: Data to be hashed as *bytes*.
|
||||
:returns: Truncated SHA-256 hash of random data as *bytes*
|
||||
"""
|
||||
return Identity.truncated_hash(os.urandom(10))
|
||||
return Identity.truncated_hash(os.urandom(Identity.TRUNCATED_HASHLENGTH//8))
|
||||
|
||||
@staticmethod
|
||||
def validate_announce(packet):
|
||||
|
||||
Reference in New Issue
Block a user