artakvg / cityhash

Automatically exported from code.google.com/p/cityhash
MIT License
0 stars 0 forks source link

Non alpha-numeric characters do not get hashed #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. char foo[11] = "Hello, World!"; char bar[11] = "Hello, World?";
2. uint128 _foo = CityHash128(foo, 11); uint128 _bar = CityHash128(bar, 11);
3. Print the results. They are the same.

What is the expected output? What do you see instead? I expect a different 
number. I see two identical ones.

What version of the product are you using? On what operating system? Linux 
(Debian/Ubuntu 12.04) 64-bit AMD. Using version 1.03.

Please provide any additional information below.
It may be that this was done on purpose, but if not, I wanted to bring it to 
your attention!

Original issue reported on code.google.com by tom.thor...@gmail.com on 11 Jun 2012 at 7:48

GoogleCodeExporter commented 9 years ago
Last I checked, "Hello, World!" and "Hello, World?" are 13 bytes.

Original comment by chitt...@gmail.com on 29 Jul 2012 at 11:29

GoogleCodeExporter commented 9 years ago
Balls. I thought I closed this later that day for being a moron. Yes. I 
remember the feeling of utter humility well... 

Original comment by tom.thor...@gmail.com on 29 Jul 2012 at 1:06

GoogleCodeExporter commented 9 years ago
I guess maybe I can't close it. 

Original comment by tom.thor...@gmail.com on 29 Jul 2012 at 1:09

GoogleCodeExporter commented 9 years ago

Original comment by gp...@google.com on 3 Oct 2012 at 5:00