MCPcopy Create free account
hub / github.com/phaserjs/phaser / UUID

Function UUID

src/utils/string/UUID.js:18–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16 * @return {string} The UUID string.
17 */
18var UUID = function ()
19{
20 return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c)
21 {
22 var r = Math.random() * 16 | 0;
23 var v = (c === 'x') ? r : (r & 0x3 | 0x8);
24
25 return v.toString(16);
26 });
27};
28
29module.exports = UUID;

Callers 8

AddEffectShineFunction · 0.85
ColorRamp.jsFile · 0.85
Mask.jsFile · 0.85
TileSprite.jsFile · 0.85
Video.jsFile · 0.85
Text.jsFile · 0.85
RenderTexture.jsFile · 0.85
UUID.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…