We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c47df15 commit 3f220abCopy full SHA for 3f220ab
backend/collaboration/src/service/get/collab-get-service.ts
@@ -18,7 +18,8 @@ export async function getCollabRoomService(
18
};
19
}
20
21
- const combinedString = `uid1=${userid1}|uid2=${userid2}|qid=${questionid}`;
+ const randomString = crypto.randomBytes(4).toString('hex');
22
+ const combinedString = `uid1=${userid1}|uid2=${userid2}|qid=${questionid}|rand=${randomString}`;
23
const hash = crypto.createHash('sha256');
24
const uniqueRoomName = hash.update(combinedString).digest('hex');
25
return {
0 commit comments