It can be represented as 4 8bit decimal numbers, akin to dotted decimal representation of IP addresses.
Eg : 229, 80, 20, 175
Currently, for some stupid reason, the four parts are concatenated and stored as string.
Eg : 2298020175
This will lead to clashes.
Eg : 229, 80, 201, 75
This is a CRITICAL issue.
FIX :
Use hex notation. Each 8 bit part can be converted to 2 digit hex number.
Thus, entire 32 bit uid will be a 8 digit hex number.
This ensures uniqueness.
UID is a 32 bit number.
It can be represented as 4 8bit decimal numbers, akin to dotted decimal representation of IP addresses. Eg : 229, 80, 20, 175 Currently, for some stupid reason, the four parts are concatenated and stored as string. Eg : 2298020175 This will lead to clashes. Eg : 229, 80, 201, 75
This is a CRITICAL issue.
FIX : Use hex notation. Each 8 bit part can be converted to 2 digit hex number. Thus, entire 32 bit uid will be a 8 digit hex number. This ensures uniqueness.