Commit 74a73bbf authored by Baptiste Daroussin's avatar Baptiste Daroussin
Browse files

Remove leftovers from another time

parent 4ca3a882
......@@ -46,7 +46,6 @@
#include <paths.h>
#include <float.h>
#include <math.h>
#include <xxhash.h>
#include <bsd_compat.h>
......@@ -54,31 +53,6 @@
#include "private/event.h"
#include "private/utils.h"
int64_t
pkg_hash_seed(void)
{
static int64_t seed = 0;
if (seed == 0)
seed = time(NULL);
return (seed);
}
#if (defined(WORD_BIT) && WORD_BIT == 64) || \
(defined(__WORDSIZE) && __WORDSIZE == 64) || \
defined(__x86_64__) || \
defined(__amd64__)
#define XXHASHIMPL XXH64
#else
#define XXHASHIMPL XXH32
#endif
int32_t
string_hash_func(const char *key)
{
return (XXHASHIMPL(key, strlen(key), pkg_hash_seed()));
}
void
sbuf_init(struct sbuf **buf)
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment