The standard hash('hello')
function may generate different hashes on different machines, different versions of Python, and even different runs of the same program on the same Python version/machine.
What are decent pure Python (or built in) alternatives that have low chances of collision? The use case I'm after is checking uniqueness of a string in a database (note: it doesn't have to be 100% foolproof, just extremely unlikely to collide with another string).