The @dolittle/core javascript module calculates guids based on Math.random().
Not sure how important it is to have no collisions for the correlationId, but maybe there is already stuff available that can dot this as well:
e.g.
https://github.com/kelektiv/node-uuid
The @dolittle/core javascript module calculates guids based on Math.random(). Not sure how important it is to have no collisions for the correlationId, but maybe there is already stuff available that can dot this as well: e.g. https://github.com/kelektiv/node-uuid