I need to generate a guid to use in an api that my service integrates with. It won’t be catastrophic if my guid isn’t unique. I only need to generate a couple dozen at most and I can use a hash to make sure they are unique. I tried using SecureRandom, but on my machine it freezes SketchUp for 24 seconds on the first use, after that it is fast. Does anyone know of another solution?
require 'securerandom'
t = Time.now
uuid = SecureRandom.uuid
"#{Time.now - t} seconds to generate guid."