#Hash changes per session?

7 messages · Page 1 of 1 (latest)

royal fjord
#

This starts to go a bit over my head but is it somehow possible that the getHashCode function output changes per session even though the hashed string stays the same? This didn't seem to happen on legacy everest, only on core.

If I change the hash function call to my own hash function and nothing else, the hash values start to stay consistent between sessions.

#

There are some mentions about randomized hashing above that code but this starts to get hard to understand for me.

spare raft
#

GetHashCode is not guaranteed to be consistant between sessions, by definition

#

If you want consistancy, you need to hash it yourself

royal fjord
#

That's good to hear then.

spare raft
#

It can also be different on different operating systems, which caused the paint TAS to desync

royal fjord
#

I guess this is resolved then, a bit weird how it worked fine before core. Maybe I am just the luckiest person alive.