I have the following code to create a random name for photos that are uploaded by a user...
$newBasename = sha1($sessMemberID . uniqid(mt_rand(), true));
If I put "19" in for the $sessMemberID, I am getting this string with is 42 characters in length?!
For some reason, when I built all of this last summer, I chose a CHAR(44)
Can someone help me figure out why the output length is 42 characters, and more importantly, what size I should make my database field?