]> gitweb.fluxo.info Git - puppet-stdlib.git/commit
fqdn_rotate: reset srand seed correctly on old ruby versions
authorDavid Schmitt <david.schmitt@puppetlabs.com>
Tue, 12 May 2015 14:01:55 +0000 (15:01 +0100)
committerDavid Schmitt <david.schmitt@puppetlabs.com>
Tue, 26 May 2015 13:25:43 +0000 (14:25 +0100)
commit0dc0e0dbcf9574ed1515cf6cfe2800f06d8c1d0e
tree6ea424514044c11258623f26cb380d38d51c8816
parent6cf64f1028cbb290a6254b5e753072f65c9336fa
fqdn_rotate: reset srand seed correctly on old ruby versions

Without this, the global seed is reseeded on every use
of fqdn_rotate, which is a waste. Older rubies might even use a
time-base seed which adversly impacts the quality of the RNG.
lib/puppet/parser/functions/fqdn_rotate.rb