Enable pre-calculation of results by creating a PasswordConstructor object. Make unit tests deterministic by specifying the seed for the random number generator.