Given the [uniqid](https://www.php.net/manual/en/function.uniqid.php#95001) function isn't that great for the task, perhaps we could use a package to generate GUIDs (e.g. https://packagist.org/packages/ramsey/uuid).