提交 7e6652ed 编写于 作者: J Jeremy Kemper

Prefer not to shadow a local

上级 98f96a08
......@@ -45,7 +45,7 @@ def secure_compare(a, b)
l = a.unpack "C#{a.bytesize}"
res = 0
b.each_byte { |b| res |= b ^ l.shift }
b.each_byte { |byte| res |= byte ^ l.shift }
res == 0
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册