let s = '';
const date = new Date();
const t1 = (+dayjs(date).format("YYYYMMDD")).toString(16)
const t2 = Math.floor(+dayjs(date).format("HHmmssSSS")/10).toString(16)
function createPadText(length) {
let result = '';
for (let i = 0; i < length; i++) {
result += Math.floor(Math.random(16) * 16).toString(16);
}
return result;
}
s = createPadText(9) + t1 + t2;
if(s.length<32) s = s + createPadText(32-s.length);
s = `${s.slice(0, 8)}-${s.slice(8, 12)}-${s.slice(12, 16)}-${s.slice(16, 20)}-${s.slice(20)}`
console.log(s);
console