Module: Cloudquery::Crypto::Random

Extended by:
Random
Included in:
Random
Defined in:
lib/cloudquery.rb

Constant Summary collapse

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

Instance Method Summary collapse

Instance Method Details

#nonceObject



102
103
104
# File 'lib/cloudquery.rb', line 102

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