PebbleOS v4.47.0-512-g5285d4236
Loading...
Searching...
No Matches
hash.h File Reference
#include <stddef.h>
#include <stdint.h>

Macros

#define HASH_INIT   5381U
 Initial value for hash_update().
 

Functions

uint32_t hash (const uint8_t *bytes, const uint32_t length)
 Hash bytes with the DJB2 algorithm.
 
uint32_t hash_update (uint32_t h, const void *data, size_t len)
 Continue a DJB2 hash with more data.