Module: CloudQuery::Crypto::Random
Constant Summary collapse
- SecureRandom =
(::SecureRandom) && ::SecureRandom) || (defined?(::ActiveSupport::SecureRandom) && ::ActiveSupport::SecureRandom)
Instance Method Summary collapse
Instance Method Details
#nonce ⇒ Object
8 9 10 |
# File 'lib/cloud_query/crypto.rb', line 8 def nonce "#{SecureRandom.random_number}.#{Time.now.to_i}"[2..-1] end |