DEV Community

Discussion on: uuid in JavaScript.

Collapse
 
wuz profile image
Conlin Durbin

This is a really interesting snippet for generating UUID's where you don't care about collisions. One note I haven't seen mentioned here is the danger in using Math.random() for this kind of thing. For more information on this, check this out: medium.com/@betable/tifu-by-using-...