Skip to content

Instantly share code, notes, and snippets.

@eculver
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eculver/9534167 to your computer and use it in GitHub Desktop.
Save eculver/9534167 to your computer and use it in GitHub Desktop.
One-liner to get a random character string for use in fixtures or mocking.
alias randhash='python -c "import md5; from datetime import datetime; print md5.new(datetime.now().strftime(\"%s\")).hexdigest()"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment