Setting Hash Salt For Individual Calls
I'm looking for a way to set python's hash() salt for individual calls to the function. In the docs, I've only found PYTHONHASHSEED which sets the salt for all calls to hash(). How
Solution 1:
import hashlib
def getHash(name):
m = hashlib.md5()
m.update(name)
return m.hexdigest()
Post a Comment for "Setting Hash Salt For Individual Calls"