How did you generate the IDs? #7
Answered
by
deliton
laurent-lao
asked this question in
Q&A
-
Hi, I was wondering where the id attributes come from, if I want for example, contribute a sitesofgrace.json. Thank you
|
Beta Was this translation helpful? Give feedback.
Answered by
deliton
Mar 29, 2022
Replies: 2 comments 1 reply
-
A simple random + Dates with Javascript. const id = (Date.now() + Math.floor(Math.random() * 10000000)).toString(16) +
Date.now().toString(36) +
Math.random().toString(36).substr(2); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
laurent-lao
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A simple random + Dates with Javascript.