MCPcopy Index your code
hub / github.com/nodejs/node / token

Function token

test/fixtures/wpt/common/utils.js:67–74  ·  view source on GitHub ↗

* Generate a new UUID. * @returns {string}

()

Source from the content-addressed store, hash-verified

65 * @returns {string}
66 */
67function token() {
68 var uuid = [to_hex(rand_int(32), 8),
69 to_hex(rand_int(16), 4),
70 to_hex(0x4000 | rand_int(12), 4),
71 to_hex(0x8000 | rand_int(14), 4),
72 to_hex(rand_int(48), 12)].join("-")
73 return uuid;
74}
75
76/** @private */
77function rand_int(bits) {

Callers 13

tokeniterMethod · 0.50
runNavigationIdTestFunction · 0.50
setCookieFunction · 0.50
newCredentiallessWindowFunction · 0.50
newCredentiallessIframeFunction · 0.50
common.jsFile · 0.50
newIframeCredentiallessFunction · 0.50
newIframeFunction · 0.50
newPopupFunction · 0.50
newFencedFrameFunction · 0.50
execute_scriptMethod · 0.50

Calls 3

to_hexFunction · 0.85
rand_intFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…