well, I use uuidgen[1]. If I have to generate uuids for multiple servers, then I create a microservice to handle uuid generation, and get it to generate a few held in a buffer so the rest of the system doesn't have to wait for one.
[1] http://man7.org/linux/man-pages/man1/uuidgen.1.html