Adjust for __gen_tempname interface change.