Sha256: a589c2795fff8eafb39c92834524c1c598818d6bc1d16a32af646f49ecf344e6
Contents?: true
Size: 442 Bytes
Versions: 4
Compression:
Stored size: 442 Bytes
Contents
require 'digest/md5' module ActiveMerchant #:nodoc: module Utils #:nodoc: def generate_unique_id md5 = Digest::MD5.new now = Time.now md5 << now.to_s md5 << String(now.usec) md5 << String(rand(0)) md5 << String($$) md5 << self.class.name md5.hexdigest end module_function :generate_unique_id def deprecated(message) warn(Kernel.caller[1] + message) end end end
Version data entries
4 entries across 4 versions & 1 rubygems