In my Node.js application I need a unique ID - it need to be a UUID or something like that, just unique (auto-incrementing a number is not unique enough ;-)).
At the moment I am using node-uuid, but I'm curious whether there is a way of how to achieve this without an additional module.
I though about using a timestamp, but that's not unique (as several calls to +Date()
may happen in the same millisecond.
Any other idea on how to achieve this?