Update helpers.py
parent
142e9b2236
commit
bf8eca9b2b
|
@ -155,10 +155,10 @@ def random_string(length=-1, charset=string.ascii_letters):
|
|||
|
||||
def generate_random_script_var_name(origvariname,globDebug=False):
|
||||
if globDebug:
|
||||
hash_object=hashlib.sha1(str(origvariname)+str(globentropy)).hexdigest()
|
||||
return hash_object[:-datetime.datetime.today().day]
|
||||
else:
|
||||
return origvariname
|
||||
else:
|
||||
hash_object=hashlib.sha1(str(origvariname)+str(globentropy)).hexdigest()
|
||||
return hash_object[:-datetime.datetime.today().day]
|
||||
|
||||
def randomize_capitalization(data):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue