Permalink
Browse files

Merge branch 'evilmarty-master'

  • Loading branch information...
2 parents 494077e + 4b352f8 commit 30f3d65b3b8a8a59b54dae88b4470b6570d2c13e @courtenay courtenay committed Feb 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/openid/dh.rb
View
@@ -57,7 +57,7 @@ def DiffieHellman.strxor(s, t)
end
if String.method_defined? :bytes
- s.bytes.zip(t.bytes).map{|sb,tb| sb^tb}.pack('C*')
+ s.bytes.to_a.zip(t.bytes.to_a).map{|sb,tb| sb^tb}.pack('C*')
else
indices = 0...(s.length)
chrs = indices.collect {|i| (s[i]^t[i]).chr}

0 comments on commit 30f3d65

Please sign in to comment.