summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/puppet/type/cron.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/puppet/type/cron.rb b/lib/puppet/type/cron.rb
index 9f1e7c42c..c46a7c83b 100755
--- a/lib/puppet/type/cron.rb
+++ b/lib/puppet/type/cron.rb
@@ -390,21 +390,6 @@ Puppet::Type.newtype(:cron) do
}
end
- newfunction(:fqdn_rand, :type => :rvalue, :doc => "Generates random numbers
- based on the node's fqdn. The first argument sets the range. The second
- argument specifies a number to add to the seed and is optional.") do |args|
- require 'md5'
- max = args[0]
- if args[1] then
- seed = args[1]
- else
- seed = 1
- end
- fqdn_seed = MD5.new(lookupvar('fqdn')).to_s.hex
- srand(seed+fqdn_seed)
- rand(max).to_s
- end
-
# We have to reorder things so that :provide is before :target
attr_accessor :uid