Add better random number generator, make Uuid using it.

Use crypto API if possible (nodeJS, chrome, ...)
If opera browser use Math.random as this is a good 53bit strong random number generator.
Otherwise use Mersenne Twister algorithm.