gwenaelp / vue-diagrams

Diagram component for vue.js, inspired by react-diagrams
MIT License
283 stars 64 forks source link

`generateId` produces very weak IDs. Needs to be replaced by something much more unique and safe #14

Open TonyMasse opened 3 years ago

TonyMasse commented 3 years ago

I'm proposing to use UUID instead of simple small Integer, as this the current solution is very prone to collision.

TonyMasse commented 3 years ago

Moreover, having the same function defined in several files was making changes potentially difficult. This function should be defined in one place, and imported from where it's needed.