From 36120319bc488307633e7220a125f46971482b55 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 29 Jun 2017 16:32:58 +1000 Subject: [PATCH] hash: change default mix function to murmur2 mix --- hash.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hash.hpp b/hash.hpp index 878afc4e..2d625b3b 100644 --- a/hash.hpp +++ b/hash.hpp @@ -17,14 +17,14 @@ #ifndef __UTIL_HASH_HPP #define __UTIL_HASH_HPP -#include "hash/wang.hpp" +#include "hash/murmur/murmur2.hpp" #include #include namespace util::hash { - uint32_t mix (uint32_t v) { return wang (v); } - uint64_t mix (uint64_t v) { return wang (v); } + constexpr std::uint32_t mix (std::uint32_t a, std::uint32_t b) { return murmur2::mix (a, b); } + constexpr std::uint64_t mix (std::uint64_t a, std::uint64_t b) { return murmur2::mix (a, b); } } #endif