genRandomPassword was moved to plugin instead of framework.