You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
123456789101112 |
- import sys
-
- def hashMod(bytes):
- result = 0
- for byte in bytes:
- result += byte
- return result % sys.maxsize
-
-
- if __name__ == "__main__":
- test_hashmod = hashMod("test".encode('utf-8'))
- print("Teste function hashMod : ", test_hashmod)
|