Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InlineString of the same length collide #8

Open
kaoyagi-ncgm opened this issue Jul 30, 2024 · 0 comments
Open

InlineString of the same length collide #8

kaoyagi-ncgm opened this issue Jul 30, 2024 · 0 comments

Comments

@kaoyagi-ncgm
Copy link

When I entered InlineString into the hash functions, strings of the same length collided.

String127("abc") |> xxh3_128 
# 0xc9eacdcf5f8093fc959ec3e5ffe12e7f
String127("123") |> xxh3_128
# 0xc9eacdcf5f8093fc959ec3e5ffe12e7f

String7("abc") |> xxh32
# 0x9e84ce64
String7("123") |> xxh32
# 0x9e84ce64

versioninfo()
Julia Version 1.10.0
Commit 3120989f39b (2023-12-25 18:01 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 16 × Intel(R) Core(TM) i7-7820X CPU @ 3.60GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-15.0.7 (ORCJIT, skylake-avx512)
Threads: 1 on 16 virtual cores
Environment:
JULIA_SSL_NO_VERIFY_HOSTS = github.com
JULIA_PKG_USE_CLI_GIT = true
JULIA_DEPOT_PATH = /opt/juliadepot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant