diff --git a/s3tests/realistic.py b/s3tests/realistic.py index e5d234b..0ead55b 100644 --- a/s3tests/realistic.py +++ b/s3tests/realistic.py @@ -123,7 +123,7 @@ def names(mean, stddev, charset=None, seed=None): while True: while True: length = int(rand.normalvariate(mean, stddev)) - if length >= 0: + if length > 0: break name = ''.join(rand.choice(charset) for _ in xrange(length)) yield name