First Committ

This commit is contained in:
Paolo Arena
2021-08-31 18:09:59 +02:00
commit 1d6c55807c
299 changed files with 55382 additions and 0 deletions

10
src/js/objectId.js Executable file
View File

@@ -0,0 +1,10 @@
function objectId() {
return hex(Date.now() / 1000)
+ ' '.repeat(16).replace(/./g, () => hex(Math.random() * 16))
}
function hex(value) {
return Math.floor(value).toString(16)
}
export default objectId