better hash functions in state.c and processlist.c
[lttv.git] / ltt / branches / poly / lttv / lttv / state.c
index 20d4184a43c29c01a972bbb57ad0396dd11a5f54..2ff087f48d335aef3363dcd593445f0bf7bbe598 100644 (file)
@@ -97,7 +97,8 @@ void lttv_state_state_saved_free(LttvTraceState *self,
 
 guint process_hash(gconstpointer key) 
 {
-  return ((const LttvProcessState *)key)->pid;
+  guint pid = ((const LttvProcessState *)key)->pid;
+  return (pid>>8 ^ pid>>4 ^ pid>>2 ^ pid) ;
 }
 
 
This page took 0.023245 seconds and 4 git commands to generate.