Hash was taken from http://stackoverflow.com/questions/98153/whats-the-best-hashing-algorithm-to-use-on-a-stl-string-when-using-hash-map
| 53 | // |
| 54 | //***************************************************************************** |
| 55 | u32 HashString(const char* s) |
| 56 | { |
| 57 | u32 hash = 0; |
| 58 | while (*s) |
| 59 | { |
| 60 | hash = hash * 101 + *s++; |
| 61 | } |
| 62 | return hash; |
| 63 | } |
| 64 | |
| 65 | //***************************************************************************** |
| 66 | // |
no outgoing calls
no test coverage detected