Skip to content

Commit

Permalink
fix for small hashes
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown321 committed Oct 18, 2016
1 parent 267d06d commit 5d1836b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ public static void Main(string[] args)
}
ulong testStrCode32 = GetStrCode32(text);
hash = testStrCode32.ToString("x");
if (hash.Length < 12)
hash = hash.PadLeft(12,'0');
hash = hash.Substring(hash.Length-12,12);
if (reverse)
{
Expand Down

0 comments on commit 5d1836b

Please sign in to comment.