lib/new_relic/telemetry_sdk/util.rb
# This method intentionally does not use SecureRandom, because it relies
# on urandom, which raises an exception in MRI when the interpreter runs
# out of allocated file descriptors.
# The guids generated by this method may not be _secure_, but they are
# random enough for our purposes.
This method intentionally does not use SecureRandom, because it relies
on urandom, which raises an exception in MRI when the interpreter runs
out of allocated file descriptors.
The guids generated by this method may not be _secure_, but they are
random enough for our purposes.
This method intentionally does not use SecureRandom because it relies on urandom which raises an exception in MRI when the interpreter runs out of allocated file descriptors . The guids generated by this method may not be _secure_ but they are random enough for our purposes .
def generate_guid length = 16
        guid = String.new
        length.times do |a|
          guid << HEX_DIGITS[rand(16)]
        end
        guid
      end
def generate_guid length = 16 guid = String . new length . times do | a | guid << HEX_DIGITS [ rand ( 16 ) ] end guid end
This method intentionally does not use SecureRandom, because it relies
on urandom, which raises an exception in MRI when the interpreter runs
out of allocated file descriptors.
This method intentionally does not use SecureRandom because it relies on urandom which raises an exception in MRI when the interpreter runs out of allocated file descriptors .
length
<not_specific>