Completed
Push — master ( 27b20f...cb95fb )
by greg
49s
created

random.js ➔ generateUniqueIdentifier   A

Complexity

Conditions 1
Paths 2

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
nc 2
nop 1
dl 0
loc 3
rs 10
1
export function generateUniqueIdentifier(substring = 0) {
2
  return (((1+Math.random())*0x100000)|0).toString(16).substring(substring)
3
}