Module: CloudQuery::Crypto::Random

Extended by:
Random
Included in:
Random
Defined in:
lib/cloud_query/crypto.rb

Constant Summary collapse

SecureRandom =
(::SecureRandom) && ::SecureRandom) || (defined?(::ActiveSupport::SecureRandom) && ::ActiveSupport::SecureRandom)

Instance Method Summary collapse

Instance Method Details

#nonceObject



8
9
10
# File 'lib/cloud_query/crypto.rb', line 8

def nonce
  "#{SecureRandom.random_number}.#{Time.now.to_i}"[2..-1]
end