lib/xmpp4r/idgenerator.rb in xmpp4r-0.3.2 vs lib/xmpp4r/idgenerator.rb in xmpp4r-0.4
- old
+ new
@@ -28,10 +28,10 @@
end
def generate_id
@last_id += 1
timefrac = Time.new.to_f.to_s.split(/\./, 2).last[-3..-1]
-
+
"#{@last_id}#{timefrac}"
end
end
end