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

增加hash方法bkdrsubh #495

Merged
merged 2 commits into from
Oct 25, 2024
Merged

增加hash方法bkdrsubh #495

merged 2 commits into from
Oct 25, 2024

Conversation

parabala
Copy link
Collaborator

No description provided.

@@ -120,7 +120,8 @@ impl Hasher {
return match alg_parts[0] {
HASH_PADDING => Self::Padding(Default::default()),
"bkdr" => Self::Bkdr(Default::default()),
"bkdrsub" => Self::Bkdrsub(Default::default()),
"bkdrsub" => Self::BkdrsubDelimiter(BkdrsubDelimiter::from('_' as u8)),
"bkdrsubh" => Self::BkdrsubDelimiter(BkdrsubDelimiter::from('^' as u8)),
Copy link
Member

Choose a reason for hiding this comment

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

bkdrsub、bkdrsubh区分度较小,配置时可能容易误用?用bkdrsubhat or bkdrsub-hat or 其他更清晰的名字?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

有道理,修改为bkdrsubhat

Copy link
Member

@hustfisher hustfisher left a comment

Choose a reason for hiding this comment

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

LGFM!

@parabala parabala merged commit 272daec into main Oct 25, 2024
1 check passed
@parabala
Copy link
Collaborator Author

增加hash方法bkdrsubhat 已合入。

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.

2 participants