Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
*/
313
export
function
getSubDomain(win) {
314
return
'd-'
+ getRandom(win);
315
}
316
317
/**
318
* Generates a random non-negative integer.
Callers
2
test-3p-frame.js
File · 0.90
getDefaultBootstrapBaseUrl
Function · 0.85
Calls
1
getRandom
Function · 0.70
Tested by
no test coverage detected