Skip to content

Commit 121c5eb

Browse files
authored
Merge pull request #1139 from b4ldr/main
seeded_rand: update funtion to ensure it returns an int not String
2 parents 5c44a95 + 2604d08 commit 121c5eb

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)