Class: Simrpc::IDBank

Inherits:
Object
  • Object
show all
Defined in:
lib/simrpc/common.rb

Overview

ID bank, generates unique ids

Class Method Summary collapse

Class Method Details

.generateObject

FIXME right now generates uuid and grabs first 8 chars for message ids, not enough for tru randomness



50
51
52
# File 'lib/simrpc/common.rb', line 50

def self.generate
  UUID.new.generate[0...8]
end