Skip to content

Commit

Permalink
[loki] Optimize division
Browse files Browse the repository at this point in the history
  • Loading branch information
tysmith committed Jan 30, 2024
1 parent 54c128b commit e46034d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loki/loki.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def _fuzz_data(in_data, byte_order):
elif fuzz_op == 1: # arithmetic
out_data = unpack(pack_unit, in_data)[0] + randint(-10, 10)
elif fuzz_op == 2: # interesting byte, short or int
out_data = choice((0, 1, int(mask / 2), int(mask / 2) + 1, mask))
out_data = choice((0, 1, mask // 2, (mask // 2) + 1, mask))
elif fuzz_op == 3: # random byte, short or int
out_data = getrandbits(32)
elif fuzz_op == 4:
Expand Down

0 comments on commit e46034d

Please sign in to comment.