Passed
Push — master ( 8f8bea...9a4355 )
by Christian
14:30 queued 10s
created

src/Administration/Resources/app/administration/test/_helper_/uuid.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 9
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 1
mnd 0
bc 0
fnc 1
bpm 0
cpm 1
noi 0
1
const crypto = require('crypto');
2
3
export default {
4
    get(key) {
5
        const hash = crypto.createHash('sha1');
6
        hash.update(key);
7
        return hash.digest('hex');
8
    }
9
};
10