lib/dirty_pipeline/event.rb in dirty_pipeline-0.6.0 vs lib/dirty_pipeline/event.rb in dirty_pipeline-0.6.1
- old
+ new
@@ -10,10 +10,11 @@
SUCCESS = "succeeded".freeze
def self.create(transition, *args, tx_id:)
new(
data: {
- "uuid" => Nanoid.generate,
+ # FIXME: SecureRandom
+ "uuid" => SecureRandom.uuid,
"transaction_uuid" => tx_id,
"transition" => transition,
"args" => args,
}
)