How it works
A UUID v4 contains 122 random bits, generated here with the browser's native crypto.randomUUID. The chance of two colliding is negligible for any realistic workload, which is why v4 UUIDs are the default for database keys and distributed ids.