| 427 | return ss.str(); |
| 428 | } |
| 429 | inline unsigned long long hash_larson64(const char* s, |
| 430 | unsigned long long seed = 0) { |
| 431 | unsigned long long hash = seed; |
| 432 | while (*s) { |
| 433 | hash = hash * 101 + *s++; |
| 434 | } |
| 435 | return hash; |
| 436 | } |
| 437 | |
| 438 | inline uint64_t hash_combine(uint64_t a, uint64_t b) { |
| 439 | // Note: The magic number comes from the golden ratio |
no outgoing calls
no test coverage detected