Return hash from channel_hash function

This commit is contained in:
Ian McEwen
2025-11-06 14:55:41 -07:00
committed by GitHub
parent e924afd140
commit 0e67ef37aa

View File

@@ -370,7 +370,7 @@ def channel_hash(data: bytes) -> int:
result = 0
for char in data:
result ^= char
return
return result
def generate_channel_hash(name, key) -> int:
"""generate the channel number by hashing the channel name and psk (accepts str or bytes for both)"""