Module: Tanshuku::Configuration::DefaultKeyGenerator

Defined in:
lib/tanshuku/configuration.rb

Overview

The default unique key generator. Calls SecureRandom.alphanumeric with #key_length.

Class Method Summary collapse

Class Method Details

.callString

Calls SecureRandom.alphanumeric and returns a string with length of Tanshuku::Configuration#key_length.

Returns:



27
28
29
# File 'lib/tanshuku/configuration.rb', line 27

def self.call
  SecureRandom.alphanumeric(Tanshuku.config.key_length)
end