search

Home  >  Q&A  >  body text

Generator - java generates 18-digit unique id

Each Alipay coupon has an 18-digit integer ID, and the consumption code on WeChat's coupon is 12 digits. I would like to know how this 18-digit unique ID is generated. Aren't they generally 64-bit? Or UUiD

習慣沉默習慣沉默2795 days ago900

reply all(2)I'll reply

  • 世界只因有你

    世界只因有你2017-06-12 09:25:08

    http://www.wangtao.pw/admin/d... Use java to generate pure numeric unique IDs (no database involved. Customized number of digits)

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-06-12 09:25:08

    You can read this article from Meituan, it should be helpful to you http://tech.meituan.com/MT_Le...

    reply
    0
  • Cancelreply