Previous version made GPDR-friendly
This commit is contained in:
9
src/_data/global.js
Normal file
9
src/_data/global.js
Normal file
@@ -0,0 +1,9 @@
|
||||
export default {
|
||||
random() {
|
||||
const segment = () => {
|
||||
return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
|
||||
};
|
||||
return `${segment()}-${segment()}-${segment()}`;
|
||||
},
|
||||
now: Date.now()
|
||||
};
|
||||
Reference in New Issue
Block a user