-
Notifications
You must be signed in to change notification settings - Fork 87
Different slice in struct result in the same hash #47
Comments
This fork seems to notice the difference: https://github.com/creker/hashstructure |
This issue seems like a duplicate of or related to #36 and was apparently fixed in this fork: michaelbeaumont@d0db090 EDIT: tested the commit and it does NOT fix this issue EDIT2: I'm afraid this is simply the limit of the used FNV-1 algorithm. See also here. |
Currently I need to iterate through the input slice and use sha256 to hash every element before using hashstructure.Hash, this way will prevent collision temporarily |
That's certainly one way. |
Has this project been abandoned? For what I gather here the owner does not care about fixing the issues :( |
I don’t. I plan on archiving this repo soon, feel free to fork! 👍 https://gist.github.com/mitchellh/90029601268e59a29e64e55bab1c5bdc |
Here's how to reproduce it:
which will print:
The text was updated successfully, but these errors were encountered: