I recall seeing UUID generators that are specifically tuned for use as keys in databases that specifically support them as primary keys. E.g. this has been around for a while:
https://docs.microsoft.com/en-us/sql/t-sql/functions/newsequ...
https://docs.microsoft.com/en-us/sql/t-sql/functions/newsequ...
Note that the endianness may catch you by surprise, though. For example, what's good in postgres may not be good for SQL server.