Skip to content

Commit

Permalink
Merge pull request #5 from internetee/remove-uuidtools-gem
Browse files Browse the repository at this point in the history
Use `securerandom` instead of `uuidtools` gem
  • Loading branch information
artur-intech authored Oct 31, 2019
2 parents 1a50f21 + d1fc0a5 commit 76f9fd4
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 76f9fd4

Please sign in to comment.