adjusted sha1-generation