Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Fix the hash computation
authorGabriel Corona <gabriel.corona@loria.fr>
Fri, 15 Jan 2016 13:54:52 +0000 (14:54 +0100)
committerGabriel Corona <gabriel.corona@loria.fr>
Fri, 15 Jan 2016 14:01:42 +0000 (15:01 +0100)
src/mc/mc_hash.cpp

index ba391fa..b260507 100644 (file)
@@ -26,7 +26,7 @@ public:
   template<class T>
   void update(T& x)
   {
-    state_ = (state_ << 5) + state_ + (std::uint64_t) value;
+    state_ = (state_ << 5) + state_ + state_;
   }
   hash_type value()
   {