summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/safe_browsing/murmurhash3_util.h
blob: 8569c7769edeaa86a16c5413b94595bca06a295f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_RENDERER_SAFE_BROWSING_MURMURHASH3_UTIL_H_
#define CHROME_RENDERER_SAFE_BROWSING_MURMURHASH3_UTIL_H_

#include <string>
#include "base/basictypes.h"

namespace safe_browsing {

// Runs the 32-bit murmurhash3 function on the given string and returns the
// output as a uint32.
uint32 MurmurHash3String(const std::string& str, uint32 seed);

}  // namespace safe_browsing

#endif  // CHROME_RENDERER_SAFE_BROWSING_MURMURHASH3_UTIL_H_