Random quasi-phase-matched second-harmonic generation in periodically poled lithium tantalate