A testable version.
It breaks down when generating passwords for some reason.