Commit a9f99a6c authored by Paul Asmuth's avatar Paul Asmuth
Browse files

Merge pull request #26 from jurriaan/real-uuids

Use SecureRandom.uuid for uuids
parents 1eae7787 2a4fe0c6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
require 'securerandom'
class FnordMetric::InboundStream < EventMachine::Connection 

  @@opts = nil
@@ -43,7 +44,7 @@ class FnordMetric::InboundStream < EventMachine::Connection
  end

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

  def close_connection?