`uuid.uuid4().hex` would be safer.