Module: YYID

Defined in:
lib/yyid.rb

Constant Summary collapse

VERSION =
"4"

Class Method Summary collapse

Class Method Details

.newObject



8
9
10
# File 'lib/yyid.rb', line 8

def self.new
  "%08x-%04x-%04x-%04x-%04x%08x" % SecureRandom.random_bytes(16).unpack("NnnnnN")
end