class Rack::Protection::Base

def random_string(secure = defined? SecureRandom)

def random_string(secure = defined? SecureRandom)
  secure ? SecureRandom.hex(16) : "%032x" % rand(2**128-1)
rescue NotImplementedError
  random_string false
end