diff options
Diffstat (limited to 'inc/hash.h')
-rw-r--r-- | inc/hash.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/inc/hash.h b/inc/hash.h new file mode 100644 index 0000000..96a30dd --- /dev/null +++ b/inc/hash.h @@ -0,0 +1,14 @@ +// Copyright (c) 2023, Marvin Borner <dev@marvinborner.de> +// SPDX-License-Identifier: MIT + +#ifndef BLOC_HASH_H +#define BLOC_HASH_H + +#include <stdint.h> +#include <stddef.h> + +typedef uint32_t hash_t; + +hash_t hash(const uint8_t *key, size_t len, uint32_t seed); + +#endif |