code / tomo

Lines41.3K C23.7K Markdown9.7K YAML5.0K Tomo2.3K
7 others 763
Python231 Shell230 make212 INI47 Text21 SVG16 Lua6
(13 lines)
1 // An implementation of the SipHash algorithm.
3 #pragma once
5 #include <stddef.h>
6 #include <stdint.h>
8 #include "util.h"
10 // This value will be randomized on startup in tomo_init():
11 extern uint64_t TOMO_HASH_KEY[2];
13 PUREFUNC uint64_t siphash24(const uint8_t *src, size_t src_sz);