My understanding is that distances are computed using great circle routes -- the minimum possible mileage. It's impossible for a plane to fly that route, but that's the shortest possible. The difference between the posting and the in-flight computer is probably due to the use of slightly different reference points and has nothing to do with actual mileage flown, which would reflect MUCH more than a 10-mile difference.
Bruce