Separate client and server codes. Keep everything in one git repo for simplicity
[vchess.git] / utils / tokenGenerator.js
diff --git a/utils/tokenGenerator.js b/utils/tokenGenerator.js
deleted file mode 100644 (file)
index b549198..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-function randString()
-{
-       return Math.random().toString(36).substr(2); // remove `0.`
-}
-
-module.exports = function(tlen)
-{
-       let res = "";
-       let nbRands = Math.ceil(tlen/10); //10 = min length of a rand() string
-       for (let i = 0; i < nbRands; i++)
-               res += randString();
-       return res.substr(0, tlen);
-}