Allow 0 random characters to be appended to the hash

Sometimes you don't want a random string appended to your hash, mostly for legacy systems. This change allows random to be 0 to disable this feature.