Class: Tokenifier::Random
- Inherits:
-
Object
- Object
- Tokenifier::Random
- Defined in:
- lib/tokenifier/random.rb
Class Method Summary collapse
Class Method Details
.secret ⇒ Object
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 |