I noticed that Cuid is marked as deprecated due to security on the repo https://github.com/paralleldrive/cuid
They recommend using Cuid2: https://github.com/paralleldrive/cuid2
edit: the repo providing the rust implementation says that "their k-sortability is only insecure in specific use-cases".