From 2d74f61553ae401250e303fb17edae3d5a283498 Mon Sep 17 00:00:00 2001 From: simon987 Date: Wed, 25 Nov 2020 15:33:01 -0500 Subject: [PATCH] fix fuzz bug --- hexlib/rand.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hexlib/rand.py b/hexlib/rand.py index da5fcf9..f1f4b75 100644 --- a/hexlib/rand.py +++ b/hexlib/rand.py @@ -26,7 +26,7 @@ def fuzz(buf: bytes, n: int, width: int): i = random.randint(0, len(buf)) for off in range(width): if i + off < len(buf): - fuzzed[i + off] = fuzzed[i + off] + 1 + fuzzed[i + off] = random.randint(0, 255) return fuzzed