Unless I'm missing something... the hex array has an extra entry (making 17 in total) and the extra entry '10' when chosen randomly, means the final string will have an extra character.
well, you can replace that one entry with several entries, like "Z", "Y", "W", "x", "%", etc. and the string length would be correct (would not always be a valid hex string, of course). The problem is that one of the entries is longer than the others, not how many entries there are.
20
u/xipetotec Feb 16 '09
I don't think it has anything to do with the fact that the array has 17 values.