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

Added magic hashes for MurmurHash3, a non-cryptographic hash function #28

Merged
merged 1 commit into from Oct 7, 2023

Conversation

spaze
Copy link
Owner

@spaze spaze commented Oct 7, 2023

https://github.com/aappleby/smhasher

Generated with a code similar to

$algo = 'murmur3a',
for ($i = 10_000_000; $i < 10_009_999; $i++) {
	$input = $i;
	$hash = hash($algo, $input);
	if ($hash == 0) {
		echo "$input:$hash\n";
	}
}
for ($i = 100_000_000; $i < 100_099_999; $i++) {
	$input = base64_encode($i);
	$hash = hash($algo, $input);
	if ($hash == 0) {
		echo "$input:$hash\n";
	}
}
for ($i = 100_000_000; $i < 100_099_999; $i++) {
	$input = base64_encode(random_bytes(9));
	$hash = hash($algo, $input);
	if ($hash == 0) {
		echo "$input:$hash\n";
	}
}

@spaze spaze self-assigned this Oct 7, 2023
@spaze spaze merged commit 45ddd8d into master Oct 7, 2023
@spaze spaze deleted the spaze/murmurhash3 branch October 7, 2023 02:36
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

Successfully merging this pull request may close these issues.

None yet

1 participant