Go Back  FlyerTalk Forums > Travel&Dining > TravelBuzz
Reload this Page >

Are PNR/Confirmation Codes Randomly Generated?

Community
Wiki Posts
Search

Are PNR/Confirmation Codes Randomly Generated?

Thread Tools
 
Search this Thread
 
Old Aug 1, 2017 | 5:55 pm
  #1  
Original Poster
FlyerTalk Evangelist
60 Nights
50 Countries Visited
3M
15 Years on Site
 
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?
MatthewLAX is offline  
Old Aug 1, 2017 | 7:29 pm
  #2  
FlyerTalk Evangelist
10 Countries Visited
20 Countries Visited
30 Countries Visited
25 Years on Site
 
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.
username is offline  
Old Aug 1, 2017 | 7:45 pm
  #3  
A FlyerTalk Posting Legend, Moderator, Information Desk, Ambassador, Alaska Airlines
1M
Community Builder
15 Years on Site
 
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 is offline  
Old Aug 1, 2017 | 7:51 pm
  #4  
All eyes on you!
20 Years on Site
 
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.
xooz is offline  
Old Aug 1, 2017 | 8:09 pm
  #5  
 
Join Date: Feb 2017
Posts: 276
if they could allow us to assign our own PNR...

they probably would, and charge us for it.
frobozzelectric is offline  
Old Aug 2, 2017 | 12:36 am
  #6  
5M
100 Nights
100 Countries Visited
10 Years on Site
 
Join Date: May 2013
Location: west coast best coast
Programs: TINDER GOLD, STARBUCKS GOLD, COSTCO EXECUTIVE!!
Posts: 4,049
Originally Posted by frobozzelectric
they probably would, and charge us for it.
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.
keitherson is offline  
Old Aug 2, 2017 | 11:51 am
  #7  
All eyes on you!
10 Years on Site
 
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.
fbruno is offline  
Old Aug 5, 2017 | 6:11 pm
  #8  
nrr
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.
nrr is offline  
Old Aug 5, 2017 | 8:22 pm
  #9  
Moderator, Hilton Honors
Conversation Starter
All eyes on you!
20 Years on Site
 
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.
Kiwi Flyer is offline  
Old Aug 6, 2017 | 9:18 am
  #10  
FlyerTalk Evangelist
10 Countries Visited
20 Countries Visited
30 Countries Visited
25 Years on Site
 
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).
username is offline  
Old Aug 19, 2017 | 4:56 pm
  #11  
FlyerTalk Evangelist
30 Countries Visited
40 Countries Visited
50 Countries Visited
5M
 
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?
SkyTeam777 is online now  
Old Aug 19, 2017 | 10:15 pm
  #12  
500k
40 Countries Visited
All eyes on you!
20 Years on Site
 
Join Date: Apr 2004
Location: Motown
Programs: DL, WN, AA, IHG Diamond, Hertz 5*
Posts: 3,450
Originally Posted by SkyTeam777
How does Korean Air incorporate the phone number though?
I'd like to hear an explanation of that too. I believe the KE system is Amadeus based, since the records I've seen always have airline record numbers that match that gds (if booked in Amadeus).
DavidDTW is offline  
Old Aug 22, 2017 | 12:26 pm
  #13  
All eyes on you!
15 Years on Site
 
Join Date: Jul 2009
Location: UK
Programs: BA Gold
Posts: 2,436
They certainly aren't completely random, if you make multiple bookings within a short space of time the first two characters are normally the same.
Steve_ZA is offline  


Contact Us - Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service -

This site is owned, operated, and maintained by MH Sub I, LLC dba Internet Brands. Copyright © 2026 MH Sub I, LLC dba Internet Brands. All rights reserved. Designated trademarks are the property of their respective owners.