change default hash function to sha1