I believed that hash() function works the same in all python interpreters. But it differs when I run it on my mobile using python for android. I get same hash v
From Python 3.3 the default hash algorithm has created hash values which are salted with a random value which is different even between different python processes on the same machine.
Hash randomization only is implemented currently for strings - since it was considered to be the most likely data type captured from outside that could be attacked.
The same frozenset consistently produces the same hash value across different machines or even different processes
Source: https://www.quora.com/Do-two-computers-produce-the-same-hash-for-identical-objects-in-Python