Method: Rack::Utils#secure_compare

Defined in:
lib/rack/utils.rb,
lib/rack/utils.rb

#secure_compare(a, b) ⇒ Object

:nocov:



431
432
433
434
435
# File 'lib/rack/utils.rb', line 431

def secure_compare(a, b)
  return false unless a.bytesize == b.bytesize

  OpenSSL.fixed_length_secure_compare(a, b)
end