Module: Token

Defined in:
lib/platform_helpers/token.rb

Class Method Summary collapse

Class Method Details

.provide(n = 10) ⇒ Object



14
15
16
17
18
19
# File 'lib/platform_helpers/token.rb', line 14

def self.provide(n=10)
  t=''
  rand(Time.now.tv_sec)
  n.times { t += "#{rand(Time.now.tv_sec)}" }
  return MD5.hexdigest(t)
end