* Simple string hash function. */
| 140 | * Simple string hash function. |
| 141 | */ |
| 142 | static uint64_t hash(const char *s) |
| 143 | { |
| 144 | uint64_t h = 777799777ull; |
| 145 | while (*s) |
| 146 | h = (3333331ull * h) ^ (0xe9e9ea1bull * (uint64_t)*s++); |
| 147 | return h; |
| 148 | } |
| 149 | |
| 150 | /* |
| 151 | * Simple random number function. |