lib/hoth.rb in hoth-0.3.0 vs lib/hoth.rb in hoth-0.3.1
- old
+ new
@@ -16,16 +16,23 @@
require 'hoth/util/logger'
require 'hoth/extension/core/exception'
require 'hoth/exceptions'
+require 'digest/sha1'
+
module Hoth
class <<self
def init!
load_service_definition
load_module_definition
Logger.init_logging!
+ @client_uuid = Digest::SHA1.hexdigest("Time.now--#{rand()}")
+ end
+
+ def client_uuid
+ @client_uuid
end
def config_path
@config_path || "config/"
end
\ No newline at end of file