tomo/stdlib/siphash.h
Bruce Hill 8f346b48aa Fix up some compiler flags around floating point numbers so they work
better with -Ofast and have more standardized behavior
2024-10-03 14:19:23 -04:00

16 lines
327 B
C

#pragma once
// An implementation of the SipHash algorithm.
#include <stdint.h>
#include <stddef.h>
#include "util.h"
// This value will be randomized on startup in tomo_init():
extern uint64_t TOMO_HASH_KEY[2];
PUREFUNC uint64_t siphash24(const uint8_t *src, size_t src_sz);
// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0