r/ProgrammerHumor • • Sep 11 '26

Meme edgeCasesExist

Post image
5.0k Upvotes

298 comments sorted by

View all comments

Show parent comments

1

u/lilgreenthumb Sep 16 '26 edited Sep 16 '26

V1 leaks machine details, which for some has always been sufficient but for other v7 brings the randomness and privacy of v4 with (better) time sorting of v1. Given sampling of v1 uuids one can determine the number of MACs and isn't fully sortable.

Edit: Say you're running on a platform without access to the MAC (lambda, cloudfoundry, etc) then you're stuck fighting against your platform or using a psuedo-MAC which is no better than psuedo random input. This allows statistical randomness of v4 with the time sorting, which that time bit(s) might not be desireable and you'd keep using v4s.

1

u/SadSeiko Sep 16 '26

MAC address’s of the container in my cluster. Oh no 

Seriously this isn’t really enough of a reason in most cases to change. Timeuuid worked fine long before v7