You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both are obtained with hash(object, { algorithm: 'md5', encoding: 'base64' , unorderedObjects: true }).
PS: I found out what causes the issue. It is the difference of object prototype. To obtain the same hash, the following should be used: hash(object, { algorithm: 'md5', encoding: 'base64' , respectType: false }).
For basic untyped objects, it seems that it should by default ignore the prototype. It is also possible that some library code adds a function to prototype, so I would advocate that the default for respectType should be false, not true like it is right now. It seems less likely that a user would be surprised by the behavior if it is false, because if they turn on respectType, they will be made aware of the fact that the prototype is part of the hash.
Hi!
I wonder how strong the determinism is guaranteed.
For example,
Thanks!!
The text was updated successfully, but these errors were encountered: