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
-
.call ⇒ String
Calls
SecureRandom.alphanumeric
and returns a string with length of #key_length.
Class Method Details
.call ⇒ String
Calls SecureRandom.alphanumeric
and returns a string with length of Tanshuku::Configuration#key_length.
27 28 29 |
# File 'lib/tanshuku/configuration.rb', line 27 def self.call SecureRandom.alphanumeric(Tanshuku.config.key_length) end |