Add sha1 and random string functions