Files
mir_server/Gateway/srvlib/include/bzhash.h
aixianling 5c9f1dae4a init
2025-01-09 17:45:40 +08:00

27 lines
591 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef _BZ_HASH_H_
#define _BZ_HASH_H_
/******************************************************************
*
* $ 基于网上流传的暴雪哈希算法实现的字符串哈希值计算函数 $
*
*****************************************************************/
//#ifdef __cplusplus
//extern "C" {
//#endif
/*
* Comments: 计算字符串哈希值
* Param const char * str: 字符串指针必须是0终止的字符串
* Param unsigned int seed: 哈希计算种子值,不同的种子值计算出的哈希值不同
* @Return unsigned int:
*/
unsigned int bzhashstr(const char *str, unsigned int seed);
//#ifdef __cplusplus
//}
//#endif
#endif