Hasher::finish() does not reset the hasher. #43763
Labels
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
At least for
HashMap
’s default hasher, a call toHasher::finish()
will not reset the hasher’s internal state. Instead, additionalwrite()
s will modify the hasher’s existing state as iffinish()
had never been called:will produce
Is this intended behavior? If so, this should probably mentioned in the documentation as it is somewhat surprising given the name of the method. I am happy to create a PR but wanted to check first.
The text was updated successfully, but these errors were encountered: