Puppet Function: hmac_secret
- Defined in:
- lib/puppet/parser/functions/hmac_secret.rb
- Function type:
- Ruby 3.x API
Overview
5 6 7 8 |
# File 'lib/puppet/parser/functions/hmac_secret.rb', line 5 newfunction(:hmac_secret, :type => :rvalue) do |args| bits = args[0].to_i SecureRandom.base64(bits / 8) end |