| 1502 | } |
| 1503 | |
| 1504 | static uint64_t dist_token_hash_update_span(uint64_t h, const int *tokens, uint32_t n_tokens) { |
| 1505 | for (uint32_t i = 0; i < n_tokens; i++) h = dist_token_hash_update(h, tokens[i]); |
| 1506 | return h; |
| 1507 | } |
| 1508 | |
| 1509 | static uint64_t dist_token_hash_prefix(const int *tokens, uint32_t n_tokens) { |
| 1510 | return dist_token_hash_update_span(DS4_DIST_TOKEN_HASH_INIT, tokens, n_tokens); |
no test coverage detected