Class: Simrpc::IDBank
- Inherits:
-
Object
- Object
- Simrpc::IDBank
- Defined in:
- lib/simrpc/common.rb
Overview
ID bank, generates unique ids
Class Method Summary collapse
-
.generate ⇒ Object
FIXME right now generates uuid and grabs first 8 chars for message ids, not enough for tru randomness.
Class Method Details
.generate ⇒ Object
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 |