Purple  0.1
Standard Language Specification
Functions
hash.c File Reference

Logic for hashing functions. More...

#include "utils/hash.h"
Include dependency graph for hash.c:

Functions

unsigned long int FNV_1 (char *str)
 FNV-1 String hashing algorithm as defined here: https://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function#FNV-1_hash. More...
 

Detailed Description

Logic for hashing functions.

Author
Charles Averill
Date
17-Sep-2022

Function Documentation

◆ FNV_1()

unsigned long int FNV_1 ( char *  str)

FNV-1 String hashing algorithm as defined here: https://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function#FNV-1_hash.

Parameters
strString to be hashed
Returns
unsigned long int Hash value