Update install and refactor site.py
This commit is contained in:
17
wo/core/random.py
Normal file
17
wo/core/random.py
Normal file
@@ -0,0 +1,17 @@
|
||||
import random
|
||||
import string
|
||||
|
||||
|
||||
class RANDOM:
|
||||
|
||||
def short(self):
|
||||
short_random = ''.join([random.choice
|
||||
(string.ascii_letters + string.digits)
|
||||
for n in range(8)])
|
||||
return short_random
|
||||
|
||||
def long(self):
|
||||
long_random = ''.join([random.choice
|
||||
(string.ascii_letters + string.digits)
|
||||
for n in range(24)])
|
||||
return long_random
|
||||
Reference in New Issue
Block a user