Make password generation work on MacOSX