Skip to content

UL-689 Change algorithm to Murmur3#16

Merged
umermansoor merged 3 commits intodevelopmentfrom
UL-689-Switch-to-Murmur3
Dec 29, 2020
Merged

UL-689 Change algorithm to Murmur3#16
umermansoor merged 3 commits intodevelopmentfrom
UL-689-Switch-to-Murmur3

Conversation

@umermansoor
Copy link
Copy Markdown
Contributor

No description provided.

} catch (NoSuchAlgorithmException | UnsupportedEncodingException ex) {
logger.error("Error in generating hashcode ", ex);
}
return (int) (Math.abs(hash % 100) + 1);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why + 1 here? Do we use 1 to 100 instead of 0 to 99 for bucket number?

@umermansoor umermansoor merged commit bc79ef0 into development Dec 29, 2020
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.

3 participants