Skip to content

Commit 2604d08

Browse files
committed
seeded_rand: update funtion to ensure it returns an int not String
Ref: puppetlabs/puppet@3dcf66bb547
1 parent 5c44a95 commit 2604d08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/parser/functions/seeded_rand.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@
2828

2929
max = args[0].to_i
3030
seed = Digest::MD5.hexdigest(args[1]).hex
31-
Puppet::Util.deterministic_rand(seed, max)
31+
Puppet::Util.deterministic_rand_int(seed, max)
3232
end

0 commit comments

Comments
 (0)