Would it be possible to probe for the existence of this class and function? That way we don't have to explicitly check the Ruby version and can just work with what's available.

Also, this code is implementing consistent random values without tampering with the seed. Would it be reasonable to extract this behavior to a `Puppet::Util` function? That way we're not tightly coupling the logic of the fqdn_rand behavior and safely getting a consistent hash.