1 // Copyright 2019 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef BASE_HASH_LEGACY_HASH_H_ 6 #define BASE_HASH_LEGACY_HASH_H_ 7 8 #include <stdint.h> 9 10 #include "base/base_export.h" 11 #include "base/containers/span.h" 12 13 namespace base { 14 namespace legacy { 15 16 // Implementation is fixed at CityHash v1.0.3. 17 // Unchanging forever: yes 18 BASE_EXPORT uint64_t CityHash64(base::span<const uint8_t> data); 19 BASE_EXPORT uint64_t CityHash64WithSeed(base::span<const uint8_t> data, 20 uint64_t seed); 21 22 } // namespace legacy 23 } // namespace base 24 25 #endif // BASE_HASH_LEGACY_HASH_H_ 26