Added a base parameter to the interaction_case_hash function
[pspp-builds.git] / src / math / interaction.c
index 746cc17fa1bcd72acaf0359a7824f1c214705c49..269aa7e9ad9af816a56b5c95d2fc4ce9ea90dbf7 100644 (file)
@@ -155,10 +155,10 @@ interaction_to_string (const struct interaction *iact, struct string *str)
 }
 
 unsigned int
-interaction_case_hash (const struct interaction *iact, const struct ccase *c)
+interaction_case_hash (const struct interaction *iact, const struct ccase *c, unsigned int base)
 {
   int i;
-  size_t hash = 0;
+  size_t hash = base;
   for (i = 0; i < iact->n_vars; ++i)
     {
       const struct variable *var = iact->vars[i];