summaryrefslogtreecommitdiffstats
path: root/base/hash.h
Commit message (Collapse)AuthorAgeFilesLines
* base::Hash: Minor improvements to documentation and testing.mgiuca@chromium.org2014-03-061-7/+6
| | | | | | | | | | | | | | | Renamed the char* argument to 'data' and the string argument to 'str'. Cleaned up the comments on the char* overload (avoid using string-specific terms and mentioning null byte). Mentioned that this algorithm is also in Blink. Added a test case testing that null bytes cause the hash to change. BUG=347393 Review URL: https://codereview.chromium.org/182253007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255269 0039d316-1c4b-4281-b951-d872f2087c98
* Moved SuperFastHash function from base/hash.cc to base/third_party.mgiuca@chromium.org2014-03-031-6/+14
| | | | | | | | | | | | | | | | | | | | This code was written by Paul Hsieh under a 3-clause BSD license. It belongs in third_party. I did not move the existing implementation, but re-downloaded the code from upstream: http://www.azillionmonkeys.com/qed/hash.html This version is formatted differently and is written in plain C, but it is identical to the version that was previously in hash.cc. Added LICENSE and README.chromium files, as well as adding license text to the top of superfasthash.cc, as required by checklicenses.py. BUG=347393 Review URL: https://codereview.chromium.org/181643004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254437 0039d316-1c4b-4281-b951-d872f2087c98
* Move hash.h/cc from net to base.jbates@chromium.org2012-09-011-0/+31
Review URL: https://chromiumcodereview.appspot.com/10920026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154554 0039d316-1c4b-4281-b951-d872f2087c98