you could use the [node-uuid](https://github.com/broofa/node-uuid) lib too