复制代码def random_string(length=TRACKER_PASSWORD_LENGTH_MIN): salt = b85encode(urandom(length)) return salt.decode()