changed the salt generation.