diff options
author | Marvin Borner | 2023-05-30 23:05:30 +0200 |
---|---|---|
committer | Marvin Borner | 2023-05-30 23:33:39 +0200 |
commit | cbd21e1da0d763225e7ea3594d4e6d8e96863790 (patch) | |
tree | dae4242584e178b59337ca247aa532805af0d8d0 /inc/lib/hash.h | |
parent | e78acdabd1436083c503a5f1860ecdf14f3ee1bd (diff) |
Added hash-based approach
Diffstat (limited to 'inc/lib/hash.h')
-rw-r--r-- | inc/lib/hash.h | 14 |
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..7cfad83 --- /dev/null +++ b/inc/lib/hash.h @@ -0,0 +1,14 @@ +// Copyright (c) 2023, Marvin Borner <dev@marvinborner.de> +// SPDX-License-Identifier: MIT + +#ifndef SHARING_HASH_H +#define SHARING_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 |