chore(app): add prettier

This commit is contained in:
Lakhan Samani
2022-10-02 22:39:47 +05:30
parent c32a7fa1e4
commit f62a22619b
7 changed files with 62 additions and 32 deletions

View File

@@ -8,7 +8,7 @@ export const createRandomString = () => {
'0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.';
let random = '';
const randomValues = Array.from(
getCrypto().getRandomValues(new Uint8Array(43))
getCrypto().getRandomValues(new Uint8Array(43)),
);
randomValues.forEach((v) => (random += charset[v % charset.length]));
return random;