| 1318 |
alexandre_ |
1 |
/*
|
|
|
2 |
Copyright (c) 2004-2006, The Dojo Foundation
|
|
|
3 |
All Rights Reserved.
|
|
|
4 |
|
|
|
5 |
Licensed under the Academic Free License version 2.1 or above OR the
|
|
|
6 |
modified BSD license. For more information on Dojo licensing, see:
|
|
|
7 |
|
|
|
8 |
http://dojotoolkit.org/community/licensing.shtml
|
|
|
9 |
*/
|
|
|
10 |
|
|
|
11 |
dojo.provide("dojo.uuid.RandomGenerator");
|
|
|
12 |
dojo.uuid.RandomGenerator = new function () {
|
|
|
13 |
this.generate = function (returnType) {
|
|
|
14 |
dojo.unimplemented("dojo.uuid.RandomGenerator.generate");
|
|
|
15 |
var returnValue = "00000000-0000-0000-0000-000000000000";
|
|
|
16 |
if (returnType && (returnType != String)) {
|
|
|
17 |
returnValue = new returnType(returnValue);
|
|
|
18 |
}
|
|
|
19 |
return returnValue;
|
|
|
20 |
};
|
|
|
21 |
}();
|
|
|
22 |
|