Making generateHash backwards compatible