Revision 5861b3d5 vncauthproxy/passwd.py

b/vncauthproxy/passwd.py
53 53
def gen_salt():
54 54
    """ Generate 16-char salt string. """
55 55
    chars = list(string.ascii_letters + string.digits + "./")
56
    random.shuffle(chars)
57

  
58 56
    return "".join(random.choice(chars) for x in range(16))
59 57

  
60 58

  

Also available in: Unified diff