News for hackers. Stuff that matters.
Re:Orin Kerr: Why I Am Representing Auernheimer Pro Bono on ... by nookiemonster on Friday March 22, 2013 @01:53AM (#5421584)
Increment is the wrong word. They implemented the Luhn algorithm, which is not the same as i++
Re:Orin Kerr: Why I Am Representing Auernheimer Pro Bono on ... by antiterra on Friday March 22, 2013 @02:17AM (#5421633)
Increment in the general sense just means to increase the amount. A more specific meaning is to increase using regular steps, that is, to select the next number in a sequence. The use of the word is not confined to i++ or i=i+1 or ++i.

Luhn is just a check digit, so you could define an increment function that adds one to the base number and then calculates the last digit. Or, you could just iterate over every possible check digit from 0-9.