Randomize SVG definition id's

When using inline SVG’s a duplicated definition element id’s will cause problems as the browser will use the first SVG definition with the id.

I created a tool to randomize id’s, you can find it here:

http://hugozap.com/randomize_svg_def_ids.html

If for some reason the link is broken, here’s the gist (it’s a single html file)