# File lib/ruote/id/wfid_generator.rb, line 44 def generate t = Time.now.utc time = t.strftime('%Y%m%d-%H%M%S') ms = t.to_f % 1.0 #c = @mutex.synchronize { @counter = (@counter + 1) % 10_000 } c = @counter = (@counter + 1) % 10_000 x = "#{ms}!#{Thread.current.object_id}!#{@here}!#{c}" x = Digest::MD5.hexdigest(x) "#{time}-#{x}" end