thejake 11 Posted June 17, 2012 Report Share Posted June 17, 2012 If you need UUIDs for various things this is pretty: define $uuid4 { return($eval("\'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\'.replace(/[xy]/g, function(c) \{ var r = Math.random()*16|0, v = c == \'x\' ? r : (r&0x3|0x8); return v.toString(16); \});")) } 1 Quote Link to post Share on other sites
JohnB 255 Posted June 18, 2012 Report Share Posted June 18, 2012 Very Nice...thanks for the share... John Quote Link to post Share on other sites
celavey 1 Posted June 18, 2012 Report Share Posted June 18, 2012 Great tip. Thanks for posting such info! Quote Link to post Share on other sites
UBotBuddy 331 Posted October 15, 2012 Report Share Posted October 15, 2012 Kudos. This is far better than what I did back in version 3.x days. +1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.