 Every secretary of state has to do a quantifiable analysis after the election where they do random auditing of the ballots that have to align with a statistical sampling. And if they don't align, then they do a wholesale audit of the entire system, which hasn't happened because they didn't align. It's actually very hard to manipulate the machines.