Module: Clepsydra::TokenProvider

Defined in:
lib/clepsydra/token_provider.rb

Constant Summary collapse

RANGE_END =
36**10
RANGE_START =
(RANGE_END / 36) - 1

Class Method Summary collapse

Class Method Details

.generateObject



8
9
10
# File 'lib/clepsydra/token_provider.rb', line 8

def self.generate
  rand(RANGE_START..RANGE_END).to_s(36)
end