Skip to content

Instantly share code, notes, and snippets.

@macndesign
Created September 16, 2009 01:40
Show Gist options
  • Save macndesign/187804 to your computer and use it in GitHub Desktop.
Save macndesign/187804 to your computer and use it in GitHub Desktop.
from random import choice
import string
def genPasswd(length=8):
p = ''.join([choice(string.letters+string.digits) for i in range(length)])
return p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment