From 4dfd0c82e3fa7918cd5b7b881f432f2bc7da5788 Mon Sep 17 00:00:00 2001 From: Davis King Date: Tue, 24 Jul 2018 13:05:11 -0400 Subject: [PATCH] Allow 64bit seeds for murmur hash. --- dlib/general_hash/murmur_hash3.h | 2 +- dlib/general_hash/murmur_hash3_abstract.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlib/general_hash/murmur_hash3.h b/dlib/general_hash/murmur_hash3.h index b8e37260e..e89edebd8 100644 --- a/dlib/general_hash/murmur_hash3.h +++ b/dlib/general_hash/murmur_hash3.h @@ -320,7 +320,7 @@ namespace dlib inline std::pair murmur_hash3_128bit ( const void* key, const int len, - const uint32 seed = 0 + const uint64 seed = 0 ) { const uint8 * data = (const uint8*)key; diff --git a/dlib/general_hash/murmur_hash3_abstract.h b/dlib/general_hash/murmur_hash3_abstract.h index ef7bc0b41..8aed2db88 100644 --- a/dlib/general_hash/murmur_hash3_abstract.h +++ b/dlib/general_hash/murmur_hash3_abstract.h @@ -65,7 +65,7 @@ namespace dlib std::pair murmur_hash3_128bit ( const void* key, const int len, - const uint32 seed = 0 + const uint64 seed = 0 ); /*! requires