It's not actually a hash of the URL, rather it's typically simply a base 64 serial number that increments for each new URL. That's why the URLs start at 2 characters and grow to 4 or 5, though the number is so large that they'll rarely see 6. http://tr.im (my weapon of choice) for instance is still at 4 characters.