updated lab5 and 6

This commit is contained in:
Student 2025-09-09 09:24:01 +05:30
parent 13bcfbbafd
commit fefb795f80
2 changed files with 4 additions and 4 deletions

View file

@ -12,7 +12,7 @@ def hash_gen(s: str, h: int, mult: int):
cur ^= (cur >> 16)
cur = (cur * 0x85ebca6b) & MASK32
cur ^= (cur >> 13)
print(f"String: {s!r} Hash: {cur:#010x}")
print(f"Hash: {cur:#010x}")
h = cur
time.sleep(2)
except KeyboardInterrupt: