Metadata generation should be deterministic