Skip to content

Commit

Permalink
Merge pull request #83 from Wenzel/mmh3_hash_bytes
Browse files Browse the repository at this point in the history
worker: fix mmh3.hash64 argument by converting to bytes
  • Loading branch information
Wenzel authored Feb 18, 2025
2 parents 932e10b + 9732342 commit fcda8c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kafl_fuzzer/worker/execution_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def hash(self, pre_lut=False):
assert not pre_lut, "Request pre-LUT hash but LUT has been applied already."
else:
self.apply_lut()
return "%016x" % mmh3.hash64(self.cbuffer, seed=0xaaaaaaaa, x64arch=True, signed=False)[0]
return "%016x" % mmh3.hash64(bytes(self.cbuffer), seed=0xaaaaaaaa, x64arch=True, signed=False)[0]

def apply_lut(self):
if not self.lut_applied:
Expand Down

0 comments on commit fcda8c1

Please sign in to comment.