Skip to content

Instantly share code, notes, and snippets.

@gennad
Created June 10, 2011 09:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gennad/1018521 to your computer and use it in GitHub Desktop.
Save gennad/1018521 to your computer and use it in GitHub Desktop.
Generate random hashcode in Python
import random
random.seed()
hash = random.getrandbits(128)
print "hash value: %016x" % hash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment