docs: def get_checksum32(oqparam, hazard=False):
      """
      Build an unsigned 32 bit integer from the input files of a calculation.
  
      :param oqparam: an OqParam instance
      :param hazard: if True, consider only the hazard files
      :returns: the checkume
      """
      # NB: using adler32 & 0xffffffff is the documented way to get a checksum
      # which is the same between Python 2 and Python 3
      checksum = 0
      for fname in get_input_files(oqparam, hazard):
          checksum = _checksum(fname, checksum)
      if hazard:
          hazard_params = []
          for key, val in vars(oqparam).items():
              if key in ('rupture_mesh_spacing', 'complex_fault_mesh_spacing',
                         'width_of_mfd_bin', 'area_source_discretization',
                         'random_seed', 'ses_seed', 'truncation_level',
                         'maximum_distance', 'investigation_time',
                         'number_of_logic_tree_samples', 'imtls',
                         'ses_per_logic_tree_path', 'minimum_magnitude',
                         'prefilter_sources', 'sites',
                         'pointsource_distance', 'filter_distance'):
                  hazard_params.append('%s = %s' % (key, val))
          data = '\n'.join(hazard_params).encode('utf8')
          checksum = zlib.adler32(data, checksum) & 0xffffffff
      return checksum