Method: UUID.new_random

Defined in:
lib/cast_off/compile/namespace/uuid.rb

.new_randomObject

UUID generation using random-number generator. From it’s random nature, there’s no warranty that the created ID is really universaly unique.



121
122
123
124
125
# File 'lib/cast_off/compile/namespace/uuid.rb', line 121

def new_random
  rnd = [prand, prand, prand, prand].pack "N4"
  raw = mask 4, rnd
  create raw
end