lib/ruote/id/wfid_generator.rb in ruote-2.1.6 vs lib/ruote/id/wfid_generator.rb in ruote-2.1.7
- old
+ new
@@ -45,10 +45,13 @@
protected
def get_raw
+ lraw = @last['raw'] + 0.01
+
raw = Time.now.utc
+ while raw.to_f <= lraw; raw = raw + 0.01; end
@last['raw'] = raw.to_f
last = @context.storage.put(@last)