Zionetrix::Git
Repositories
Help
Report an Issue
MySC
Code
Commits
Branches
Tags
Search
Tree:
4126171
Branches
Tags
master
MySC
public_html
inc
lib
uuid.js
Rework on data structure to add uuid as objects identifier and add lastChange metadata to each objects
Benjamin Renard
commited
4126171
at 2016-09-07 23:23:15
uuid.js
Blame
History
Raw
generate_uuid=function() { return '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); }); }