Angular service that generates RFC4122 version 4 UUIDs / GUIDs.
Based on pnegri's npm package: https://github.com/pnegri/uuid-js
Require the module in your app and call
You can also validate uuids.
This returns true if the uuid is a valid v4 uuid.
There are reports of
Math.random() not working properly on some systems. This may causes collisions (UUIDs that are the same).