reg/utils.py
changeset 2 c11afa8623f7
child 6 057498d12450
equal deleted inserted replaced
1:18dc0362f550 2:c11afa8623f7
       
     1 import string
       
     2 import random
       
     3 
       
     4 def gen_key():
       
     5     allowed_chars = string.digits+string.uppercase
       
     6     return ''.join([random.choice(allowed_chars) for i in range(10)])