mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-21 23:29:47 +00:00
realistic.names shouldn't return a 0-length filename
This commit is contained in:
parent
3303b0f33b
commit
e4effe5479
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue