Are PNR/Confirmation Codes Randomly Generated?
#1
Original Poster
FlyerTalk Evangelist




Join Date: Feb 2007
Location: Los Angeles / Basel
Programs: UA 1K MM, AA EXP, Hyatt Globalist
Posts: 27,391
Are PNR/Confirmation Codes Randomly Generated?
I could have sworn I read an article on this a few years ago, but cannot find it. I'm just curious.
Say I book a ticket from AA and the reservation code is ABCDEF.
Do those letters mean anything? Is there any rhyme or reason to which letters the PNR is assigned, or is it totally random? Any link to geography or POS or type of ticket?
Is this true for both Sabre and Amadeus?
Say I book a ticket from AA and the reservation code is ABCDEF.
Do those letters mean anything? Is there any rhyme or reason to which letters the PNR is assigned, or is it totally random? Any link to geography or POS or type of ticket?
Is this true for both Sabre and Amadeus?
#2
FlyerTalk Evangelist




Join Date: May 2001
Posts: 11,699
My understanding is that a lot of these systems are based on the same thing - IBM's TPF operating system where is is all about performing fast transactions.
Someone once told me that the locator actually maps/hashes to a disk location on the system. I don't know if that is still the case but I don't doubt it at least in the beginning of these systems. Just think these systems were developed 50+ years ago and memory, disk space, network and processing power were all expensive. So, they had to squeeze every byte and CPU cycle and wrote in assembly language (simple machine instructions).
I know on the UA SHARES system, if I make a few reservations in a row, the locators appear to be in some kind of sequential sorted order.
Someone once told me that the locator actually maps/hashes to a disk location on the system. I don't know if that is still the case but I don't doubt it at least in the beginning of these systems. Just think these systems were developed 50+ years ago and memory, disk space, network and processing power were all expensive. So, they had to squeeze every byte and CPU cycle and wrote in assembly language (simple machine instructions).
I know on the UA SHARES system, if I make a few reservations in a row, the locators appear to be in some kind of sequential sorted order.
#3
A FlyerTalk Posting Legend, Moderator, Information Desk, Ambassador, Alaska Airlines



Join Date: Dec 2006
Location: FAI
Programs: AS MVP Gold100K, AS 1MM, Maika`i Card, AGR, Hertz PC, Marriott Lifetime Plat, CO, 7H, BA, 8E
Posts: 44,318
Please follow the redirect to TravelBuzz.
~beckoa, co-moderator Information Desk
~beckoa, co-moderator Information Desk
#4


Join Date: Jul 2002
Posts: 4,070
The PNR confirmation codes (Record Locators) are typically a hash algorithm that maps to a particular disk storage loaction (file address). The numbers are random, though there is typically a table of dirty words that is used to compare and exclude the use of "bad words" as record locators.
#6




Join Date: May 2013
Location: west coast best coast
Programs: TINDER GOLD, STARBUCKS GOLD, COSTCO EXECUTIVE!!
Posts: 4,049
many airlines have in house systems that assign their own PNR
Korean Air uses your phone number
and no, PNRs are not random. they are mostly random, but airlines have learnt to censor bad 3-6 letter words that they don't want in PNRs.
Korean Air uses your phone number
and no, PNRs are not random. they are mostly random, but airlines have learnt to censor bad 3-6 letter words that they don't want in PNRs.
#7


Join Date: Feb 2014
Location: SIN/BRU
Programs: A3 Silver, BA BLUE, IHG Gold, Hertz President's circle, AY plat
Posts: 235
It depends per GDS.
Sabre PNR's are completely random (only letters though).
Amadeus and Galileo PNR's are in a certain sequence. Both use letters and numbers.
Sabre PNR's are completely random (only letters though).
Amadeus and Galileo PNR's are in a certain sequence. Both use letters and numbers.
#8
FlyerTalk Evangelist
Join Date: Jul 2003
Location: jfk area
Programs: AA platinum; 2MM AA, Delta Diamond, Hilton Diamond
Posts: 10,291
AA names itns, if I'm flying from JFK to ZRH, it would be JFK/ZRH, for one such trip my PNR was nearly a "permutation" of those letters, from my recollection something like ZHRKJA--I've flown this itn many times, but only that particular itn was even close, so mostly likely only a coincidence.
#9
Moderator, Hilton Honors



Join Date: Nov 2003
Location: on a short leash
Programs: some
Posts: 71,445
Some airlines go further with non-randomness. For example Air NZ PNRs always end in "H".
Not mentioned above but an airline shouldn't have more than one current ticket with the same PNR. In practice PNRs are not recycled for a short while in case of any post-travel issues.
Not mentioned above but an airline shouldn't have more than one current ticket with the same PNR. In practice PNRs are not recycled for a short while in case of any post-travel issues.
#10
FlyerTalk Evangelist




Join Date: May 2001
Posts: 11,699
I really don't think locators are random. If you think about it, if it is random, then it can repeat, which we know does not happen. I don't think the algorithm would say generate something randomly and then check for duplication, etc.
I would guess in the best case, it would be "random within a set of rules".
Note also that some airlines share the same system and some GDS are also used by airlines for internal reservation processing (e.g. SABRE and AA).
I would guess in the best case, it would be "random within a set of rules".
Note also that some airlines share the same system and some GDS are also used by airlines for internal reservation processing (e.g. SABRE and AA).
#11
FlyerTalk Evangelist




Join Date: May 2002
Location: NC
Programs: AAConciergeKey/2MM, DL DM/2MM, UA Gold,Hilton Diamond,IHG Diamond, Hyatt Globalist,Marriott Titanium
Posts: 13,214
This is a fascinating discussion...while airlines may have algorithms to stop bad words, funny combinations still exist. Cool to know that PNRs can be repeated, but only after some time past the travel date.
How does Korean Air incorporate the phone number though?
How does Korean Air incorporate the phone number though?
#12




Join Date: Apr 2004
Location: Motown
Programs: DL, WN, AA, IHG Diamond, Hertz 5*
Posts: 3,450

