1 // Copyright 2014 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "base/hash.h" 6 7 #include <functional> 8 9 namespace base { 10 SuperFastHash(const char * data,size_t len)11uint32_t SuperFastHash(const char* data, size_t len) { 12 std::hash<std::string> hash_fn; 13 return hash_fn(std::string(data, len)); 14 } 15 16 } // namespace base 17