lib/poly_pseudo/util.rb in poly_pseudo-0.1.0 vs lib/poly_pseudo/util.rb in poly_pseudo-0.1.1
- old
+ new
@@ -72,10 +72,10 @@
def self.xor s1, s2
b1 = s1.unpack('c*')
b2 = s2.unpack('c*')
if b1.length != b2.length
- raise DecodeError, 'cannot xor strings of different lengths!'
+ raise 'cannot xor strings of different lengths!'
end
b1.zip(b2).map { |a, b| a ^ b }.pack('c*')
end
end