im stupid

This commit is contained in:
Lawin0129
2022-03-09 19:34:13 +00:00
parent 8cf7e405bf
commit 4ea28d4955
3 changed files with 17 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
const crypto = require("crypto");
const memory = require("./../memory.json");
const XMLBuilder = require("xmlbuilder");
const uuid = require("uuid");
function GetVersionInfo(req, memory) {
if (req.headers["user-agent"])
@@ -227,12 +227,7 @@ function getContentPages(req) {
}
function MakeID() {
let CurrentDate = (new Date()).valueOf().toString();
let RandomFloat = Math.random().toString();
let ID = crypto.createHash('md5').update(CurrentDate + RandomFloat).digest('hex');
let FinishedID = ID.slice(0, 8) + "-" + ID.slice(8, 12) + "-" + ID.slice(12, 16) + "-" + ID.slice(16, 20) + "-" + ID.slice(20, 32);
return FinishedID;
return uuid.v4();
}
function sendXmppMessageToAll(body) {