This commit is contained in:
virusdefender
2017-01-23 16:01:56 +08:00
parent 0f03e75713
commit 3e42e6648e
24 changed files with 58 additions and 511 deletions

View File

@@ -1,4 +1,3 @@
# coding=utf-8
import logging
import random
@@ -22,4 +21,4 @@ def rand_str(length=32, type="lower_hex"):
elif type == "lower_hex":
return random.choice("123456789abcdef") + get_random_string(length - 1, allowed_chars="0123456789abcdef")
else:
return random.choice("123456789") + get_random_string(length - 1, allowed_chars="0123456789")
return random.choice("123456789") + get_random_string(length - 1, allowed_chars="0123456789")