mirror of
https://github.com/Lawin0129/LawinServer.git
synced 2026-01-13 02:42:22 +01:00
im stupid
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user