I think we shouldn't rely on our own unique, random id generation. Something like https://github.com/broofa/node-uuid has correctness and performance tests...