What is the easiest way to generate a random hash (MD5) in Python?
This works for both python 2.x and 3.x
import os import binascii print(binascii.hexlify(os.urandom(16))) '4a4d443679ed46f7514ad6dbe3733c3d'