Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F886183
generateRandomUuid.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
779 B
Subscribers
None
generateRandomUuid.js
View Options
/*
Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if
(
!
dojo
.
_hasResource
[
"dojox.uuid.generateRandomUuid"
]){
dojo
.
_hasResource
[
"dojox.uuid.generateRandomUuid"
]
=
true
;
dojo
.
provide
(
"dojox.uuid.generateRandomUuid"
);
dojox
.
uuid
.
generateRandomUuid
=
function
(){
var
_1
=
16
;
function
_2
(){
var
_3
=
Math
.
floor
((
Math
.
random
()
%
1
)
*
Math
.
pow
(
2
,
32
));
var
_4
=
_3
.
toString
(
_1
);
while
(
_4
.
length
<
8
){
_4
=
"0"
+
_4
;
}
return
_4
;
};
var
_5
=
"-"
;
var
_6
=
"4"
;
var
_7
=
"8"
;
var
a
=
_2
();
var
b
=
_2
();
b
=
b
.
substring
(
0
,
4
)
+
_5
+
_6
+
b
.
substring
(
5
,
8
);
var
c
=
_2
();
c
=
_7
+
c
.
substring
(
1
,
4
)
+
_5
+
c
.
substring
(
4
,
8
);
var
d
=
_2
();
var
_8
=
a
+
_5
+
b
+
_5
+
c
+
d
;
_8
=
_8
.
toLowerCase
();
return
_8
;
};
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 6, 23:14 (2 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25115
Default Alt Text
generateRandomUuid.js (779 B)
Attached To
rZEDHG ZedLegacy
Event Timeline
Log In to Comment