Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix 'on_exit' preservation which failed when auto_restart was set first (FG#11).
[simgrid.git] / src / mc / mc_hash.cpp
index 626927fe966c1d86f991044c358a12910157e77d..71f8fe80adcd3975161fef7f13fa50beaa33870f 100644 (file)
@@ -29,7 +29,7 @@ public:
   template<class T>
   void update(T& x)
   {
-    state_ = (state_ << 5) + state_ + state_;
+    state_ = (state_ << 5) + state_ + x;
   }
   hash_type value()
   {