mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
more prep work for jRuby
This commit is contained in:
@@ -31,7 +31,7 @@ class Pbkdf2
|
||||
|
||||
# fallback xor in case we need it for jruby ... way slower
|
||||
def self.xor(x, y)
|
||||
x.bytes.zip(y.bytes).map { |x, y| x ^ y }.pack('c*')
|
||||
x.bytes.zip(y.bytes).map { |a, b| a ^ b }.pack('c*')
|
||||
end
|
||||
|
||||
def self.prf(hash_function, password, data)
|
||||
|
Reference in New Issue
Block a user