avocado.utils.crypto: Fix return value of get_random_string

上级 0abc6849
......@@ -48,7 +48,7 @@ def get_random_string(length, ignore_str=string.punctuation,
tmp = "\\%s" % tmp
result += tmp
length -= 1
return str
return result
def hash_wrapper(algorithm='md5', data=None):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册