github.com/cellofellow/gopkg@v0.0.0-20140722061823-eec0544a62ad/database/leveldb/include/util/hash.h (about) 1 // Copyright (c) 2011 The LevelDB 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. See the AUTHORS file for names of contributors. 4 // 5 // Simple hash function used for internal data structures 6 7 #ifndef STORAGE_LEVELDB_UTIL_HASH_H_ 8 #define STORAGE_LEVELDB_UTIL_HASH_H_ 9 10 #include <stddef.h> 11 #include <stdint.h> 12 13 namespace leveldb { 14 15 extern uint32_t Hash(const char* data, size_t n, uint32_t seed); 16 17 } 18 19 #endif // STORAGE_LEVELDB_UTIL_HASH_H_