| 21 | namespace { |
| 22 | |
| 23 | uint64_t HashToRange(const std::vector<uint8_t>& element, const uint64_t f) |
| 24 | { |
| 25 | const uint64_t hash = CSipHasher(0x0706050403020100ULL, 0x0F0E0D0C0B0A0908ULL) |
| 26 | .Write(element.data(), element.size()) |
| 27 | .Finalize(); |
| 28 | return FastRange64(hash, f); |
| 29 | } |
| 30 | |
| 31 | std::vector<uint64_t> BuildHashedSet(const std::unordered_set<std::vector<uint8_t>, ByteVectorHash>& elements, const uint64_t f) |
| 32 | { |
no test coverage detected