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