Puppet Function: random_uuid

Defined in:
lib/puppet/functions/random_uuid.rb
Function type:
Ruby 4.x API

Summary

Generates a random uuid

Overview

random_uuid()String

Returns:

  • (String)

    Random uuid



5
6
7
8
9
10
# File 'lib/puppet/functions/random_uuid.rb', line 5

Puppet::Functions.create_function(:random_uuid) do
  # @return [String] Random uuid
  def random_uuid
    SecureRandom.uuid
  end
end