Hi Mario, Yes. Which generator do you use? >
now yours :) /** * An adopted version of pmario's version to create UUIDs. * * Shortened version pmario (1.0 - 2011.05.22): * http://chat-plugins.tiddlyspace.com/#UUIDPlugin * * Original verison: * Math.uuid.js (v1.4) * http://www.broofa.com * mailto:[email protected] * * Copyright (c) 2010 Robert Kieffer * Dual licensed under the MIT and GPL licenses. */ util.genuuid = (function() { // Private array of chars to use var CHARS = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split(''); return function () { var chars = CHARS, uuid = new Array(36); var rnd=0, r; for (var i = 0; i < 36; i++) { if (i==8 || i==13 || i==18 || i==23) { uuid[i] = '-'; } else if (i==14) { uuid[i] = '4'; } else { if (rnd <= 0x02) rnd = 0x2000000 + (Math.random()*0x1000000)|0; r = rnd & 0xf; rnd = rnd >> 4; uuid[i] = chars[(i == 19) ? (r & 0x3) | 0x8 : r]; } } // else return uuid.join(''); }; })(); Taskgraph is under heavy development at the moment and I felt this is the right time to switch. If you have any improvements on your uuid code, please let me know :) Felix -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.

