News for hackers. Stuff that matters.
Re:Beautify the Git commit hash (have a look at the commit h... by vog on Sunday October 02, 2011 @05:54AM (#3062482)
(I'm the author of this little toy script)

Some small corrections:

The script is able to set 5 digits, not 4. The prefixes in the examples are actually 0001a, 0002a, etc. I added the trailing "a" to make the numbers more readable. Otherwise you would get hashes like 00015... which would look awkward. So I'm using the "a" as a kind of separator.

Also, the script refuses to change timestamps by more than 30 minutes. So changing only the committer timestamp would allow you to set only 2-3 hash digits. That's why I'm also changing the author timestamp, which leads to enough possible combinations to set about 5 hash digits. (Unless you're unlucky, because there's always a rest possibility for failure in this kind of algorithms.)

BTW, this program has been inspired by BitCoin's proof of work concept.

There are no comments on this comment yet.