10 lines
224 B
JavaScript
10 lines
224 B
JavaScript
|
module.exports = {
|
||
|
random() {
|
||
|
const segment = () => {
|
||
|
return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
|
||
|
};
|
||
|
return `${segment()}-${segment()}-${segment()}`;
|
||
|
},
|
||
|
now: Date.now()
|
||
|
};
|