mirror of https://github.com/davisking/dlib.git
Allow 64bit seeds for murmur hash.
This commit is contained in:
parent
f32abe9758
commit
4dfd0c82e3
|
@ -320,7 +320,7 @@ namespace dlib
|
||||||
inline std::pair<uint64,uint64> murmur_hash3_128bit (
|
inline std::pair<uint64,uint64> murmur_hash3_128bit (
|
||||||
const void* key,
|
const void* key,
|
||||||
const int len,
|
const int len,
|
||||||
const uint32 seed = 0
|
const uint64 seed = 0
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
const uint8 * data = (const uint8*)key;
|
const uint8 * data = (const uint8*)key;
|
||||||
|
|
|
@ -65,7 +65,7 @@ namespace dlib
|
||||||
std::pair<uint64,uint64> murmur_hash3_128bit (
|
std::pair<uint64,uint64> murmur_hash3_128bit (
|
||||||
const void* key,
|
const void* key,
|
||||||
const int len,
|
const int len,
|
||||||
const uint32 seed = 0
|
const uint64 seed = 0
|
||||||
);
|
);
|
||||||
/*!
|
/*!
|
||||||
requires
|
requires
|
||||||
|
|
Loading…
Reference in New Issue