Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/darkreader/darkreader
/ hexify
Function
hexify
src/utils/uid.ts:1–3 ·
view source on GitHub ↗
(number: number)
Source
from the content-addressed store, hash-verified
1
function
hexify(number: number): string {
2
return
((number < 16 ?
'0'
:
''
) + number.toString(16));
3
}
4
5
export
function
generateUID(): string {
6
if
(
'randomUUID'
in crypto) {
Callers
1
generateUID
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected