MCPcopy Index your code
hub / github.com/ampproject/amphtml / getSubDomain

Function getSubDomain

src/3p-frame.js:313–315  ·  view source on GitHub ↗
(win)

Source from the content-addressed store, hash-verified

311 * @visibleForTesting
312 */
313export function getSubDomain(win) {
314 return 'd-' + getRandom(win);
315}
316
317/**
318 * Generates a random non-negative integer.

Callers 2

test-3p-frame.jsFile · 0.90

Calls 1

getRandomFunction · 0.70

Tested by

no test coverage detected