Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #25 from NfoAlex/FixUseridGeneration
Browse files Browse the repository at this point in the history
Fix userid generation
  • Loading branch information
NfoAlex authored Jun 17, 2023
2 parents 6cffcf2 + eb1c812 commit 378ace1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,11 @@ let registerUser = function registerUser(dat) { //dat=[0=>name(名前), 1=>key(

}

//ID格納用
let newID = "";
//ID生成
for ( let i=0; i<8; i++ ) {
newID += parseInt(Math.random() * 12); //乱数を追加
newID += Math.trunc(Math.random() * 9); //乱数を追加

}

Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const e = require("express");

const port = process.env.PORT || 33333;

const SERVER_VERSION = "alpha_20230617";
const SERVER_VERSION = "alpha_20230618";

const app = express();
const server = http.createServer(app);
Expand Down

0 comments on commit 378ace1

Please sign in to comment.