For something a little more practical, I recently came across this postgres id generator[1], which Ive been playing around with as a solution for ordered, scalable bigint ids (that take up less space than standard uuids).
[1] https://rob.conery.io/2014/05/28/a-better-id-generator-for-p...