Commit 2a4fe0c6 authored by Jurriaan Pruis's avatar Jurriaan Pruis
Browse files

Use SecureRandom.uuid for uuids

parent 263f429f
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?