24 lines
361 B
C++
Executable File
24 lines
361 B
C++
Executable File
// TJP COPYRIGHT HEADER
|
|
|
|
#include "Hash.h"
|
|
#include "fasthash.h"
|
|
|
|
namespace tjp {
|
|
namespace core {
|
|
|
|
u32 hash32(const u8 *begin, size_t size)
|
|
{
|
|
static u32 seed = 0x026f23a;
|
|
return fasthash32(begin, size, seed);
|
|
}
|
|
|
|
u64 hash64(const u8 *begin, size_t size)
|
|
{
|
|
static u32 seed = 0x026f23a;
|
|
return fasthash64(begin, size, seed);
|
|
}
|
|
|
|
} // namespace
|
|
} // namespace
|
|
|