diff options
Diffstat (limited to 'src/Utils.ts')
-rw-r--r-- | src/Utils.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Utils.ts b/src/Utils.ts new file mode 100644 index 000000000..7f26bc394 --- /dev/null +++ b/src/Utils.ts @@ -0,0 +1,11 @@ + + +export class Utils { + + public static GenerateGuid() { + function s4() { + return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1); + } + return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4(); + } +}
\ No newline at end of file |