Skip to content

Commit

Permalink
Use SecureRandom.uuid for uuids
Browse files Browse the repository at this point in the history
  • Loading branch information
jurriaan committed Jan 5, 2012
1 parent 263f429 commit 2a4fe0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/fnordmetric/inbound_stream.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require 'securerandom'
class FnordMetric::InboundStream < EventMachine::Connection

@@opts = nil
Expand Down Expand Up @@ -43,7 +44,7 @@ def push_next_event
end

def get_next_uuid
rand(9999999999999999999).to_s # FIXME
SecureRandom.uuid
end

def close_connection?
Expand Down

0 comments on commit 2a4fe0c

Please sign in to comment.