Design a distributed unique id generator