Skip to content

Instantly share code, notes, and snippets.

@NightBlues
Created October 15, 2015 15:15
Show Gist options
  • Save NightBlues/d0b4c464b618ba45bd59 to your computer and use it in GitHub Desktop.
Save NightBlues/d0b4c464b618ba45bd59 to your computer and use it in GitHub Desktop.
import uuid
import multiprocessing
import pwquality
pwq = pwquality.PWQSettings()
def check(i):
uuid_ = str(uuid.uuid4())
try:
pwq.check(uuid_)
except:
print i, uuid_
raise
p = multiprocessing.Pool(5)
p.map(check, xrange(1000000))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment