def generate_password(self, user_id):
    user_id = user_id.lower()
    account = self._get_account(user_id)
    if not account:
      raise TotoException(ERROR_USER_NOT_FOUND, "Invalid user ID")
    pass_chars = string.ascii_letters + string.digits
    new_password = ''.join([random.choice(pass_chars) for x in xrange(10)])
    self._update_password(user_id, account, secret.password_hash(new_password))
    return new_password
Accepts normal responses from the device.
dataset/ETHPy150Open JeremyOT/Toto/toto/dbconnection.py/DBConnection.generate_password--crossover with--dataset/ETHPy150Open google/python-adb/adb/fastboot.py/FastbootProtocol.HandleSimpleResponses