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;