Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MankaiHuang/screen-visualization
/ S4
Function
S4
src/utils/utils.js:77–79 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
75
// 获取随机GUID
76
export
function
getGuid () {
77
const
S4 =
function
() {
78
return
(((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
79
};
80
return
`${S4() + S4()}-${S4()}-${S4()}-${S4()}-${S4()}${S4()}${S4()}`;
81
}
82
Callers
1
getGuid
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected