generate the random crypt fn the exercise actually wants