diff options
author | Philipp Eichmann <philipp.eichmann@gmail.com> | 2018-12-21 18:45:24 -0500 |
---|---|---|
committer | Philipp Eichmann <philipp.eichmann@gmail.com> | 2018-12-21 18:45:24 -0500 |
commit | 06098b7bdd6a83f6b9cc07d2377f2a19cc0ecaa6 (patch) | |
tree | d665964243f9949424555175711e27166e96f70e /src/Utils.ts | |
parent | 9caa9ca4a0b413e2da03eff4856cb324939d77d4 (diff) |
added code
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 |