4 ms·
The social security administration in the US solved this long ago. Reserve a few bits for “which source generated this integer”, then go sequential, or random
by hedora 4y ago
The social security administration in the US solved this long ago. Reserve a few bits for “which source generated this integer”, then go sequential, or random w/o replacement for each shard.
(Note that SSN’s were not meant to be unique when this scheme was invented. They were designed to be reused periodically. Name, DOB and SSN should be unique though.)
- bee_rider 4y agoIP addresses as well. The random case is nice because there’s no coordination needed, but “you get this block” is not so hard for coordination. Although I guess our ID issuing system will have to adjudicate issues of national sovereignty so maybe it is harder than it looks at first.