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