Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unsigned hash(string str)
- {
- unsigned hash = 0;
- for(int i = 0; i < str.size(); i++)
- hash = (hash * 1664525) + (unsigned char)(str[i]) + 1013904223;
- return hash;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement