string_hash.h
来自「Firestorm NIDS是一个性能非常高的网络入侵检测系统 (NIDS)。目」· C头文件 代码 · 共 20 行
H
20 行
/** This file is part of Firestorm NIDS* Copyright (c) 2001 Gianni Tedesco* This program is released under the terms of the GNU GPL version 2*//* Fowler/Noll/Vo hash * Its fast to compute, its obvious code, it performs well... */static inline u_int32_t string_hash(char *str){ u_int32_t h=2166136261UL; u_int8_t *data=(u_int8_t *)str; while(*data) { h = (h*16777619UL) ^ *data++; } return h;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?