class Rack::Protection::Base

def random_string(secure = defined? SecureRandom)

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