All public officers who are required by law to give bond, shall give bond secured by a personal surety residing within the parish where the officer exercises the functions of his office, or by a reputable and reliable surety company doing business in the state.