1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Remove redundant bitwise AND

https://github.com/rubygems/rubygems/commit/a20bac7924
This commit is contained in:
David Rodríguez 2022-06-02 12:12:21 +02:00 committed by git
parent eb5a01970f
commit 4eb140b0e4

View file

@ -43,7 +43,7 @@ module Bundler
f = (b ^ c ^ d)
k = 0xCA62C1D6
end
t = SHA1_MASK & (SHA1_MASK & rotate(a, 5) + f + e + k + w[i])
t = SHA1_MASK & rotate(a, 5) + f + e + k + w[i]
a, b, c, d, e = t, a, SHA1_MASK & rotate(b, 30), c, d # rubocop:disable Style/ParallelAssignment
end
mutated = [a, b, c, d, e]