4 ms·
I've been looking to generate support ticket numbers with built-in error correction, so they can be discussed over the phone with customers. Didn't find any of
by DenisM 7y ago
I've been looking to generate support ticket numbers with built-in error correction, so they can be discussed over the phone with customers.
Didn't find any off-the-shelf implementations in .NET so I gave up for the time being.
I might just end up adding a checksum to the ticket# and then computing all possible permutations that still meet the checksum, and verify each match against the database of open tickets. Takes less space anyway.
- buckminster 7y agoYou could use a random three word combo. "Has there been any progress on sausage-biscuit-club?"
- DenisM 7y agoI'm worried about unintentional innuendo popping up. You never know which of the urban dictionary phrases this thing will generate...
- dexen 7y agoThe EAN-13 standard is pretty close to what you need, giving single-digit error detection (tho not correction), and you can shorten it to the last 5 or 6 digits. As the last digit is the checksum, this gives you 4 or 5 digits of precision. Back at my earlier workplace we used EAN-13s as product serial numbers. Generally in customer service we used the last 5 digits, with the leading ones being implied by product model.
- DenisM 7y agoIf all I needed was detection I could just XOR all letters and append the result.