Simplify PosIdx::hash()

In C++ we don't need to salt the hash.
This commit is contained in:
Robert Hensing 2024-07-17 13:31:31 +02:00
parent d0e9878389
commit f5ebaea277

View file

@ -1,8 +1,7 @@
#pragma once #pragma once
#include <cinttypes> #include <cinttypes>
#include <functional>
#include "std-hash.hh"
namespace nix { namespace nix {
@ -43,9 +42,7 @@ public:
size_t hash() const noexcept size_t hash() const noexcept
{ {
size_t h = 854125; return std::hash<uint32_t>{}(id);
hash_combine(h, id);
return h;
} }
}; };