Rank 3: Container
Hello, I have a question, person 1 and 2 has uids.
I want to generate a third uid from the first two ids. This new ID should always be the same for only these two id combo and not any other combo.
Any ideas?
Votes
0
Replies
9
Participants
Unknown
Messages
10
Rank 3: Container
Hello, I have a question, person 1 and 2 has uids.
I want to generate a third uid from the first two ids. This new ID should always be the same for only these two id combo and not any other combo.
Any ideas?
thirdUid = firstUid + '|' + secondUid;
😁
Or doing an XOR on both values
Rank 3: Container
Thankyou @Steven.... But I require the third uid to be order independent from the first two
Rank 3: Container
First+sec , sec+first should yeild the same unique result
Xor should work then
Rank 3: Container
What is xor?
Exclusive or.
You can probably search online for stuff like this. You're looking for a hashing algorithm where order doesn't matter
Rank 3: Container
I can do that with two, appwrite unique.IDs ?
Yes