java.util.UUID.randomUUID().toString() length

前端 未结 3 1902
刺人心
刺人心 2020-12-14 13:59

Does java.util.UUID.randomUUID().toString() length always equal to 36?

I was not able to find info on that. Here it is said only the following:

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-14 14:52

    You may convert UUIDv4 16 bytes binary to 24 bytes ascii using base64, instead encode to ascii-hex (32 bytes)

提交回复
热议问题