code: def _generate_password():
      
      uuid_str = six.text_type(uuid.uuid4()).encode("UTF-8")
      return hashlib.sha1(uuid_str).hexdigest()
docs: Create a random password
  
      The password is made by taking a uuid and passing it though sha1sum.
      We may change this in future to gain more entropy.
  
      This is based on the tripleo command os-make-password