This commit is contained in:
2018-10-22 16:49:16 +02:00
parent e77996535f
commit b6127c8807
5 changed files with 35 additions and 0 deletions
View File
+12
View File
@@ -0,0 +1,12 @@
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)