npink/radiustar — comment on commit dd9d49213e55a755d4eedf00b6c4f62303fde615
File:  line 0
By npink:

Thanks for that, I am made the change.

On Dec 20, 2011, at 4:58 PM, Charl Matthee wrote:

> This is not a backwards compatible fix. I suggest:
>
> 144 def xor_str(str1, str2)
> 145 i = 0
> 146 newstr = ""
> 147 str2 = str2.bytes.to_a
> 148 str1.each_byte do |c1|
> 149 c2 = str2[i]
> 150 newstr = newstr << (c1 ^ c2)
> 151 i = i+1
> 152 end
> 153 newstr
> 154 end
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/npink/radiustar/commit/dd9d49213e55a755d4eedf00b6c4f62303fde615#commitcomment-811234