I think there would be about 1.5billion possible permutations. And as a large number of bookings are made fairly close to the departure date I doubt there would be that many in existence at one time. If it does get to that stage I imagine the booking reference would be increased to 7 or 8 digits.