From 78c02e768cbd1c4cba0cd84ff2b3808efae7406e Mon Sep 17 00:00:00 2001 From: David D'ALMEIDA Date: Sun, 9 Apr 2023 20:35:08 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'src/Api/src/contro?= =?UTF-8?q?ller/spotify-controller/crypt.ts'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Api/src/controller/spotify-controller/crypt.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Api/src/controller/spotify-controller/crypt.ts b/src/Api/src/controller/spotify-controller/crypt.ts index 56378d3..6e188c4 100644 --- a/src/Api/src/controller/spotify-controller/crypt.ts +++ b/src/Api/src/controller/spotify-controller/crypt.ts @@ -6,10 +6,10 @@ export default class CryptString{ this.stringCrypt = this.generateRandomString(length); } generateRandomString (length : number){ - var text = ''; - var possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; + let text = ''; + const possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; - for (var i = 0; i < length; i++) { + for (let i = 0; i < length; i++) { text += possible.charAt(Math.floor(Math.random() * possible.length)); } return text;