摘要:
public static long GetHashNum(string szStr) { long hash = 5381; int c; foreach (int ch in szStr) { hash = ((hash << 5) + hash) ^ (long)ch; } return hash; } 阅读全文
posted @ 2010-05-28 00:09 linFen 阅读(323) 评论(0) 推荐(0)
|
摘要:
public static long GetHashNum(string szStr) { long hash = 5381; int c; foreach (int ch in szStr) { hash = ((hash << 5) + hash) ^ (long)ch; } return hash; } 阅读全文
posted @ 2010-05-28 00:09 linFen 阅读(323) 评论(0) 推荐(0) |
||