Sha256: 385729f61e4dbdd30423f3b79336e65ac0549d4bb74451d4c6e541fe1bbdccad

Contents?: true

Size: 298 Bytes

Versions: 3

Compression:

Stored size: 298 Bytes

Contents

require "securerandom"

module Fog
  class UUID
    class << self
      def uuid
        SecureRandom.uuid
      end

      # :nodoc: This method is used by other plugins, so preserve it for the compatibility
      def supported?
        SecureRandom.respond_to?(:uuid)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fog-core-2.6.0 lib/fog/core/uuid.rb
fog-core-2.5.0 lib/fog/core/uuid.rb
fog-core-2.4.0 lib/fog/core/uuid.rb