• Eugene Hermann's avatar
    Remove undefined behavior from the hash function. · 72d18e3f
    Eugene Hermann authored
    Signed integer overflow creates undefined behavior that may lead to unpredictable fails on different platforms.
    One known example of the hardware where this code did fail is Apple A6 (32-bit Apple Swift CPU)
    
    16777619, 16777499 - two prime numbers that typically used to get better dispersion.
    72d18e3f
Name
Last commit
Last update
..
google/protobuf Loading commit data...
solaris Loading commit data...
Makefile.am Loading commit data...
README.md Loading commit data...
libprotobuf-lite.map Loading commit data...
libprotobuf.map Loading commit data...
libprotoc.map Loading commit data...