From 896e0e1bd8502a6d7f901f9e13bcd95df5d98635 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 26 May 2023 20:34:07 +0200 Subject: Abstract abstractification --- inc/lib/hash.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 inc/lib/hash.h (limited to 'inc/lib/hash.h') diff --git a/inc/lib/hash.h b/inc/lib/hash.h new file mode 100644 index 0000000..88b9215 --- /dev/null +++ b/inc/lib/hash.h @@ -0,0 +1,14 @@ +// Copyright (c) 2023, Marvin Borner +// SPDX-License-Identifier: MIT + +#ifndef CALM_HASH_H +#define CALM_HASH_H + +#include +#include + +typedef uint64_t hash_t; + +hash_t hash(void *data, size_t len, uint64_t seed); + +#endif -- cgit v1.2.3