Changed the hash function in generateUniqueID from md5 to sha1 to match the comments above