The attorney general shall be the legal adviser of the school employees retirement board.