I think it will be cleaner if we simply pass the seed instead of the random here.