Class: Tokenifier::Random

Inherits:
Object
  • Object
show all
Defined in:
lib/tokenifier/random.rb

Class Method Summary collapse

Class Method Details

.secretObject



3
4
5
# File 'lib/tokenifier/random.rb', line 3

def self.secret
  Gibberish::SHA256 [Time.now, rand(999999) + 100000].map(&:to_s).join
end