lib/firehose/subscription.rb in firehose-0.0.6 vs lib/firehose/subscription.rb in firehose-0.0.7
- old
+ new
@@ -1,7 +1,5 @@
-require 'securerandom'
-
module Firehose
class Subscription
TTL = 15000
# Time to live for the queue on the server after the subscription is canceled. This
@@ -46,9 +44,9 @@
@ttl ||= TTL
end
protected
def self.subscriber_id
- SecureRandom.uuid
+ rand(999_999_999_999).to_s
end
end
end
\ No newline at end of file