Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix hash update.
[simgrid.git] / src / mc / mc_hash.cpp
index 626927f..71f8fe8 100644 (file)
@@ -29,7 +29,7 @@ public:
   template<class T>
   void update(T& x)
   {
   template<class T>
   void update(T& x)
   {
-    state_ = (state_ << 5) + state_ + state_;
+    state_ = (state_ << 5) + state_ + x;
   }
   hash_type value()
   {
   }
   hash_type value()
   {