Commit 9d5d8c41 by sikang

bug fix

parent 9342dfd1
...@@ -14,7 +14,7 @@ class LayoutGarble: ...@@ -14,7 +14,7 @@ class LayoutGarble:
result = "" result = ""
while len(result) == 0 or result in self.__used_names: while len(result) == 0 or result in self.__used_names:
result = ''.join(random.sample( result = ''.join(random.sample(
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", random.randint(5, 12))) "abcdefghijklmnopqrstuvwxyz", random.randint(5, 12)))
self.__used_names.append(result) self.__used_names.append(result)
return result return result
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment