It's not possible to disable legacy facts when using the `fqdn_rand` function because it calls the legacy fqdn fact.