fix(api): improve security and performance in leaderboard and rooms

This commit is contained in:
jessy-david-dev
2026-04-11 13:37:50 +02:00
parent f62ce65858
commit d245232497
3 changed files with 52 additions and 35 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ function generateCode(): string {
}
function generatePlayerId(): string {
return Math.random().toString(36).slice(2, 10);
return crypto.randomUUID();
}
// Nettoie les rooms inactives depuis plus de 2h