Files
2025-01-29 10:55:49 +01:00

12 lines
189 B
C

#include "ShaderHash.h"
// djb2
uint32_t kinc_internal_hash_name(unsigned char *str) {
unsigned long hash = 5381;
int c;
while (c = *str++) {
hash = hash * 33 ^ c;
}
return hash;
}