def _mutate(self):
if self._step:
length = self._min_length + self._step * self._current_index
else:
length = self._random.randint(self._min_length, self._max_length)
current_bytes = ''
for i in range(length / 8 + 1):
current_bytes += chr(self._random.randint(0, 255))
self._current_value = Bits(bytes=current_bytes)[:length]
评论列表
文章目录