Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix hash update.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 12 Apr 2019 09:13:51 +0000 (11:13 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 12 Apr 2019 09:13:51 +0000 (11:13 +0200)
src/mc/mc_hash.cpp

index 626927f..71f8fe8 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()
   {