fixed genRandomPass