change back to random generator for apitoken