Re:There's Math.random(), and then there's Math.random()
by 8n4vidtmkvmk on Friday February 07, 2025 @10:53PM
(#42980223)
I'm kind of glad now that past-me decided to prepend a simple counter to my randomly generated IDs (using Math.random). I haven't observed any collisions with that approach (but then again... I could also just drop the Math.random part and still not likely have collisions unless a human manually chose an ID like "_1" ... but also I'm the only human in this equation)
[ Parent
| on HN ]
There are no comments on this comment yet.