Added sha1 alg for the pseudorandom patch (which should be probably refactored to have correct dependency).