Move this to a new folder for bad python

This commit is contained in:
Val 2022-09-02 06:23:25 -05:00
parent 89a40c6884
commit 1d90ffc2f2

View File

@ -1,11 +1,11 @@
#!/usr/bin/env python3
# TODO: Actually break the hashes?
# May not be necessary, just gotta find a way to crash it. Harumph.
# TODONE in chernobreak.py
def hash(byts):
def hash(chars):
ret = 0;
for c in byts:
for c in chars:
ret += c
ret = ((ret << 5) - ret) & 0xffff
return ret