better hex generator, the other one breaks on 5 characters when having leading 0s