Replacing sequence with random number

前端 未结 6 1580
被撕碎了的回忆
被撕碎了的回忆 2020-12-28 19:28

I would like to replace some of the sequences I use for id\'s in my postgresql db with my own custom made id generator. The generator would produce a random number with a ch

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-28 19:59

    Your best bet would probably be some form of hash function, and then a checksum added to the end.

提交回复
热议问题