Skip to content

Commit

Permalink
Merge branch 'main' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
christianhelle committed Nov 14, 2022
2 parents 9b110b9 + 3d9e89d commit d60187d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/autofaker/builtins.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ def generate(self):

class BytesGenerator(TypeDataGeneratorBase):
def generate(self):
return bytes(range(random.randint(0, 256)))
return bytes(range(random.randint(1, 256)))


class ByteArrayGenerator(TypeDataGeneratorBase):
def generate(self):
return bytearray(range(random.randint(0, 256)))
return bytearray(range(random.randint(1, 256)))


class MemoryViewGenerator(TypeDataGeneratorBase):
Expand Down

0 comments on commit d60187d

Please sign in to comment.