aboutsummaryrefslogtreecommitdiff
path: root/inc/lib/hash.h
diff options
context:
space:
mode:
authorMarvin Borner2023-05-26 20:34:07 +0200
committerMarvin Borner2023-05-26 20:34:22 +0200
commit896e0e1bd8502a6d7f901f9e13bcd95df5d98635 (patch)
tree4bc1916e81f75980c213802b1d4f3e81f74fb3b3 /inc/lib/hash.h
parent464cca35825a02541efd46cfd3af91146c118d01 (diff)
Abstract abstractification
Diffstat (limited to 'inc/lib/hash.h')
-rw-r--r--inc/lib/hash.h14
1 files changed, 14 insertions, 0 deletions
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 <dev@marvinborner.de>
+// SPDX-License-Identifier: MIT
+
+#ifndef CALM_HASH_H
+#define CALM_HASH_H
+
+#include <stdint.h>
+#include <stddef.h>
+
+typedef uint64_t hash_t;
+
+hash_t hash(void *data, size_t len, uint64_t seed);
+
+#endif