Skip to content

Commit

Permalink
Use securerandom instead of uuidtools gem
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Beljajev committed Oct 25, 2019
1 parent 1a50f21 commit d1fc0a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/epp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require 'openssl'
require 'libxml'
require 'hpricot'
require 'uuidtools'
require 'securerandom'

# Package files
require File.dirname(__FILE__) + '/require_parameters.rb'
Expand Down
4 changes: 2 additions & 2 deletions lib/epp/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def login
extensions_container << Node.new("extURI", uri)
end

command << Node.new("clTRID", UUIDTools::UUID.timestamp_create.to_s)
command << Node.new("clTRID", SecureRandom.uuid)

response = Hpricot::XML(send_request(xml.to_s))

Expand All @@ -183,7 +183,7 @@ def logout
xml.root << command = Node.new("command")

command << login = Node.new("logout")
command << Node.new("clTRID", UUIDTools::UUID.timestamp_create.to_s)
command << Node.new("clTRID", SecureRandom.uuid)

response = Hpricot::XML(send_request(xml.to_s))

Expand Down

0 comments on commit d1fc0a5

Please sign in to comment.