module Opalla::HexRandom
Public Class Methods
[]()
click to toggle source
# File lib/opalla/util.rb, line 5 def self.[] x = rand.to_s y = Time.new.strftime("%S%L") Digest::SHA1.hexdigest("#{y}#{x}") end
# File lib/opalla/util.rb, line 5 def self.[] x = rand.to_s y = Time.new.strftime("%S%L") Digest::SHA1.hexdigest("#{y}#{x}") end