Fix fbstring hash
authorWei Xu <weixu@fb.com>
Tue, 9 Oct 2012 04:39:44 +0000 (21:39 -0700)
committerJordan DeLong <jdelong@fb.com>
Fri, 12 Oct 2012 04:34:01 +0000 (21:34 -0700)
commit057837098c41af5345cb91b7591846ab7df4e2c1
treebfe5b0f2e8f76bfdfa1bd990f715d99833bb2e27
parent1fd9e62b291d1ede7835bb1fa74e090392175b0a
Fix fbstring hash

Summary: '\0' may actually be part of string. We cannot assume its null terminated and should use another form of fnv32.

Test Plan: FBStringTest

Reviewed By: xliux@fb.com

FB internal diff: D595287
folly/FBString.h
folly/test/FBStringTest.cpp